Skip to main content

Symfony 8.2.0

Release Date: November 28, 2026

Verdict first: Symfony 8.2.0 is a feature release that behaves like a polish release. I put it on two applications this weekend, one API and one admin panel, and the only thing I had to change was a single bundle config line. The new PropertyAccess wildcards alone saved me a custom loop in three places.

What Landed on November 28

Fabien Potencier published the stable announcement on November 28, 2026, after RC1 on November 25. The series is backed by TYPO3, Shopware and Mailtrap this cycle. The minimum PHP version is 8.4.1, which has not moved since 8.0, so if you already run 8.1 or 8.2 the upgrade is a Composer bump rather than a platform migration.

The 8.2 line is broad. The two big items I care about are wildcard reads in PropertyAccess and automatic entity discovery in Doctrine. Everything else below is the smaller stuff that makes the working day shorter.

Wildcards in Property Paths

PropertyAccess used to read one branch at a time. To pull a field out of every item in a collection you wrote a loop, and then another loop for each nesting level. Symfony 8.2 adds the [*] element, which means "all elements at this level" (PR #65297). It is off by default:

$accessor = PropertyAccess::createPropertyAccessorBuilder()
    ->enableWildcardReads()
    ->getPropertyAccessor();

$accessor->getValue($people, '[*][name]');
// ['Ada', 'Grace']

$accessor->getValue($people, '[*][jobs][*][title]');
// [['programmer', 'writer'], ['computer scientist']]

In a framework app the switch is framework.property_access.wildcard_reads. Wildcards are read-only, so setValue() with a wildcard path throws. Keys are not preserved, which is the one trade-off worth knowing before you replace existing loops.

Case Conversion by Regex

lower(), upper() and title() on the String component now accept a pattern that selects which parts of the string to convert (PR #65842). The locale variants take the same argument, and the Dutch digraph case in the docs is a good reminder that "first letter" is a language question, not a byte question:

u('HELLO WORLD')->lower('/^./');        // 'hELLO WORLD'
u('hello world')->title(false, '/^./'); // 'Hello world'
u('ijsland')->upper('/^ij|^./');        // 'IJsland'

Time-Ordered UID Boundaries

ULIDs and UUIDs v6 and v7 sort by creation time, so a primary key range query is enough to fetch "everything created in November". The missing piece was the two boundary values. createBoundaries() now returns them for a given DateTimeImmutable, or for now if you pass nothing (PR #63941). Resolution is one millisecond for ULIDs and v7, 100 nanoseconds for v6. The three classes implement a new TimeOrderedUidInterface; UuidV1 deliberately does not, because its bytes are not time sorted.

Doctrine, Mostly Less Config

Entities carrying #[Entity] or #[MappedSuperclass] now get a doctrine.orm.entity tag, and DoctrineBundle 3.4 registers them from that tag, so the mappings block in doctrine.yaml can go. Discovery only kicks in when you define neither mappings nor auto_mapping, explicit mappings win, and it needs ORM 3.6 or newer. DatePoint columns also stop needing type: 'date_point', and the Serializer can denormalize into typed Doctrine Collections. Encrypted columns arrived earlier in the 8.2 cycle and are documented in the same series.

While editing doctrine.yaml, check services.yaml for exclude: '../src/Entity/'. Only classes the container scans are discovered, so that line has to go.

Finder Exclusion Anchoring

exclude('data') matches that directory name at any depth, which is wrong when you only meant the top level. A leading slash now anchors the path to the root passed to in(), following gitignore semantics (PR #54752). exclude('/data') skips the project-level directory and leaves src/Import/data alone.

The Fixes I Actually Hit

  • String::snake() no longer goes quadratic on long uppercase runs.
  • The Yaml dumper keeps float precision, which matters for config diffs.
  • Messenger no longer stalls on --concurrency with batch handlers.
  • AmpHttpClient drops the CPU spike it showed with many concurrent streams.
  • Mailer encrypts each PGP recipient to the key in its own file instead of reusing one key.
  • SecurityBundle checks the binding and size of a DPoP proof key before verifying the signature.
  • Cache adapters stop failing on uninitialized lazy ghosts, and CookieJar compares domains case-insensitively.

How I Upgraded

Update the constraints, then let Composer resolve, then run the test suite before touching anything else:

composer require symfony/framework-bundle:^8.2 symfony/console:^8.2
composer update "symfony/*" --with-all-dependencies

Read the upgrade guide for 8.2 before you deploy, clear the cache, and check any custom PropertyAccess or Doctrine mapping config against the notes above. In my case nothing else moved. Two applications, one config line, no code changes, and three loops deleted. That is a good minor release.

Other Versions

We use cookies for ads and analytics.