Upgrading symfony/var-dumper 7 to 8
Breakingv7.4.22 → v8.1.10Breaking2Security1Platform1New4Changed3Fixed13Other3
BreakingUpgrade verdict
2 breaking changes and a platform requirement change and a security fix.
In plain terms
- The old way of registering commands with Application::add() is gone.
- Methods across components now declare return types, which can break subclasses that omit them.
- This version needs PHP 8.4 or newer.
- This version is published as a security release, so upgrading is recommended.
Must act 4 items need code or config changes
PHP requirement changed in v8.1.0-BETA1: >=8.2 → >=8.4.1.
What you must change
Breaking2
Removes deprecated Application::add() methods.
Application::add()Enforces return types on all components.
Security1
Marks this as a security release.
Platform1
Bumps Symfony 8 to require PHP >= 8.4.
API changes
Generated by DepDelta from published PHP source. Not mixed with prose notes.
- removed:
static method ResourceCaster.castCurl(\CurlHandle $h, array $a, Stub $stub, bool $isNested): array - removed:
static method ResourceCaster.castGd(\GdImage $gd, array $a, Stub $stub, bool $isNested): array - removed:
static method ResourceCaster.castOpensslX509(\OpenSSLCertificate $h, array $a, Stub $stub, bool $isNested): array - changed:
static method ResourceCaster.castDba(mixed $dba, array $a, Stub $stub, bool $isNested): array → static method ResourceCaster.castDba(\Dba\Connection $dba, array $a, Stub $stub, bool $isNested): array - added:
class ClassDumpStub extends Stub - added:
constructor ClassDumpStub(string $class) - added:
static method StubCaster.castClassDump(ClassDumpStub $c, array $a, Stub $stub, bool $isNested): array
- changed:
method DataDumperInterface.dump(Data $data) → method DataDumperInterface.dump(Data $data): ?string - added:
method HtmlDumper.setNonce(string|\Closure|null $nonce, string|\Closure|null $styleNonce = …): void