Upgrading symfony/var-dumper 5 to 6
Breakingv5.4.54 → v6.4.49Security1Platform1Deprecated6New42Changed39Fixed69Other35
BreakingUpgrade verdict
A platform requirement change and a security fix.
In plain terms
- bug symfony/symfony#57799 [ErrorHandler][VarDumper] Remove PHP 8.4 deprecations.
- This version is published as a security release, so upgrading is recommended.
- bug symfony/symfony#61402 Remove calls to deprecated methods of SplObjectStorage.
- bug symfony/symfony#60919 [VarDumper] Avoid deprecated call in PgSqlCaster.
Must act Top 5 of 8 that need code or config changes
PHP requirement changed in v6.1.0-BETA1: >=7.2.5 → >=8.1.
What you must change
Security1
Marks this as a security release.
Platform1
bug symfony/symfony#57799 [ErrorHandler][VarDumper] Remove PHP 8.4 deprecations.
Deprecations to plan for
Deprecated6
bug symfony/symfony#61402 Remove calls to deprecated methods of SplObjectStorage.
bug symfony/symfony#60919 [VarDumper] Avoid deprecated call in PgSqlCaster.
feature symfony/symfony#49847 [Cache] Fix DBAL deprecations and stop using NUL chars in tags prefix.
feature symfony/symfony#48616 [Notifier] GoogleChat CardsV1 is deprecated we must use cardsV2 instead.
feature symfony/symfony#48484 [ProxyManagerBridge] Deprecate the package.
feature symfony/symfony#48043 [SecurityBundle] Deprecate enabling bundle and not configuring it.
API changes
Generated by DepDelta from published PHP source. Not mixed with prose notes.
- changed:
static method VarDumper.dump($var) → static method VarDumper.dump(mixed $var) - changed:
static method VarDumper.setHandler(?callable $callable = …) → static method VarDumper.setHandler(?callable $callable = …): ?callable
- removed:
static method DOMCaster.castDomError(\DOMDomError $dom, array $a, Stub $stub, bool $isNested) - removed:
static method DOMCaster.castLocator(\DOMLocator $dom, array $a, Stub $stub, bool $isNested) - removed:
static method DOMCaster.castTypeinfo(\DOMTypeinfo $dom, array $a, Stub $stub, bool $isNested) - removed:
static method ResourceCaster.castMysqlLink($h, array $a, Stub $stub, bool $isNested) - changed:
constructor ClassStub(string $identifier, $callable = …) → constructor ClassStub(string $identifier, callable|array|string|null $callable = …) - changed:
constructor ConstStub(string $name, $value = …) → constructor ConstStub(string $name, string|int|float|null $value = …) - changed:
constructor CutStub($value) → constructor CutStub(mixed $value) - changed:
constructor DsPairStub($key, $value) → constructor DsPairStub(mixed $key, mixed $value) - changed:
method ConstStub.__toString() → method ConstStub.__toString(): string - changed:
static method ClassStub.wrapCallable($callable) → static method ClassStub.wrapCallable(mixed $callable) - changed:
static method RedisCaster.castRedis(\Redis $c, array $a, Stub $stub, bool $isNested) → static method RedisCaster.castRedis(\Redis|Relay $c, array $a, Stub $stub, bool $isNested) - changed:
static method ReflectionCaster.castGenerator(\Generator $c, array $a, Stub $stub, bool $isNested) → static method ReflectionCaster.castGenerator(\Generator $c, array $a, Stub $stub, bool $isNested): array - changed:
static method ResourceCaster.castCurl($h, array $a, Stub $stub, bool $isNested): array → static method ResourceCaster.castCurl(\CurlHandle $h, array $a, Stub $stub, bool $isNested): array - changed:
static method ResourceCaster.castStream($stream, array $a, Stub $stub, bool $isNested) → static method ResourceCaster.castStream($stream, array $a, Stub $stub, bool $isNested): array - changed:
static property ExceptionCaster.errorTypes → static property ExceptionCaster.errorTypes: array - changed:
static property ExceptionCaster.srcContext → static property ExceptionCaster.srcContext: int - changed:
static property ExceptionCaster.traceArgs → static property ExceptionCaster.traceArgs: bool - added:
class ScalarStub extends Stub - added:
class UninitializedStub extends ConstStub - added:
const Caster.EXCLUDE_UNINITIALIZED - added:
const Caster.PATTERN_PRIVATE - added:
constructor ScalarStub(mixed $value) - added:
constructor UninitializedStub(\ReflectionProperty $property) - added:
final class FFICaster - added:
static method ExceptionCaster.castFlattenException(FlattenException $e, array $a, Stub $stub, bool $isNested) - added:
static method FFICaster.castCTypeOrCData(CData|CType $data, array $args, Stub $stub): array - added:
static method SplCaster.castWeakMap(\WeakMap $c, array $a, Stub $stub, bool $isNested) - added:
static method StubCaster.castScalar(ScalarStub $scalarStub, array $a, Stub $stub) - added:
static method SymfonyCaster.castLazyObjectState($state, array $a, Stub $stub, bool $isNested)
- removed:
method Stub.__sleep(): array - changed:
class Data implements \ArrayAccess, \Countable, \IteratorAggregate → class Data implements \ArrayAccess, \Countable, \IteratorAggregate, \Stringable - changed:
method AbstractCloner.cloneVar($var, int $filter = …) → method AbstractCloner.cloneVar(mixed $var, int $filter = …): Data - changed:
method ClonerInterface.cloneVar($var) → method ClonerInterface.cloneVar(mixed $var): Data - changed:
method Data.__isset(string $key) → method Data.__isset(string $key): bool - changed:
method Data.__toString() → method Data.__toString(): string - changed:
method Data.count() → method Data.count(): int - changed:
method Data.getIterator() → method Data.getIterator(): \Traversable - changed:
method Data.getType() → method Data.getType(): ?string - changed:
method Data.getValue($recursive = …) → method Data.getValue(array|bool $recursive = …): string|int|float|bool|array|null - changed:
method Data.offsetExists($key) → method Data.offsetExists(mixed $key): bool - changed:
method Data.offsetGet($key) → method Data.offsetGet(mixed $key): mixed - changed:
method Data.offsetSet($key, $value) → method Data.offsetSet(mixed $key, mixed $value): void - changed:
method Data.offsetUnset($key) → method Data.offsetUnset(mixed $key): void - changed:
method Data.seek($key) → method Data.seek(string|int $key): ?static - changed:
method Data.withContext(array $context) → method Data.withContext(array $context): static - changed:
method Data.withMaxDepth(int $maxDepth) → method Data.withMaxDepth(int $maxDepth): static - changed:
method Data.withMaxItemsPerDepth(int $maxItemsPerDepth) → method Data.withMaxItemsPerDepth(int $maxItemsPerDepth): static - changed:
method Data.withRefHandles(bool $useRefHandles) → method Data.withRefHandles(bool $useRefHandles): static - changed:
method DumperInterface.dumpScalar(Cursor $cursor, string $type, $value) → method DumperInterface.dumpScalar(Cursor $cursor, string $type, string|int|float|bool|null $value) - changed:
method DumperInterface.enterHash(Cursor $cursor, int $type, $class, bool $hasChild) → method DumperInterface.enterHash(Cursor $cursor, int $type, string|int|null $class, bool $hasChild) - changed:
method DumperInterface.leaveHash(Cursor $cursor, int $type, $class, bool $hasChild, int $cut) → method DumperInterface.leaveHash(Cursor $cursor, int $type, string|int|null $class, bool $hasChild, int $cut) - changed:
protected method AbstractCloner.castObject(Stub $stub, bool $isNested) → protected method AbstractCloner.castObject(Stub $stub, bool $isNested): array - changed:
protected method AbstractCloner.castResource(Stub $stub, bool $isNested) → protected method AbstractCloner.castResource(Stub $stub, bool $isNested): array - changed:
protected method AbstractCloner.doClone($var) → protected method AbstractCloner.doClone(mixed $var): array - changed:
protected method VarCloner.doClone($var) → protected method VarCloner.doClone(mixed $var): array - added:
const Stub.TYPE_SCALAR - added:
method Data.getContext(): array - added:
method Stub.__serialize(): array - added:
protected static property Stub.propertyDefaults: array
- removed:
protected static property ServerDumpCommand.defaultDescription - removed:
protected static property ServerDumpCommand.defaultName - changed:
protected method ServerDumpCommand.configure() → protected method ServerDumpCommand.configure(): void
- changed:
function esc(string $str) → function esc(string $str): string - changed:
method AbstractDumper.dump(Data $data, $output = …) → method AbstractDumper.dump(Data $data, $output = …): ?string - changed:
method AbstractDumper.setCharset(string $charset) → method AbstractDumper.setCharset(string $charset): string - changed:
method AbstractDumper.setIndentPad(string $pad) → method AbstractDumper.setIndentPad(string $pad): string - changed:
method CliDumper.dumpScalar(Cursor $cursor, string $type, $value) → method CliDumper.dumpScalar(Cursor $cursor, string $type, string|int|float|bool|null $value) - changed:
method CliDumper.enterHash(Cursor $cursor, int $type, $class, bool $hasChild) → method CliDumper.enterHash(Cursor $cursor, int $type, string|int|null $class, bool $hasChild) - changed:
method CliDumper.leaveHash(Cursor $cursor, int $type, $class, bool $hasChild, int $cut) → method CliDumper.leaveHash(Cursor $cursor, int $type, string|int|null $class, bool $hasChild, int $cut) - changed:
method HtmlDumper.dump(Data $data, $output = …, array $extraDisplayOptions = …) → method HtmlDumper.dump(Data $data, $output = …, array $extraDisplayOptions = …): ?string - changed:
method HtmlDumper.enterHash(Cursor $cursor, int $type, $class, bool $hasChild) → method HtmlDumper.enterHash(Cursor $cursor, int $type, string|int|null $class, bool $hasChild) - changed:
method HtmlDumper.leaveHash(Cursor $cursor, int $type, $class, bool $hasChild, int $cut) → method HtmlDumper.leaveHash(Cursor $cursor, int $type, string|int|null $class, bool $hasChild, int $cut) - changed:
protected method AbstractDumper.utf8Encode(?string $s) → protected method AbstractDumper.utf8Encode(?string $s): ?string - changed:
protected method CliDumper.style(string $style, string $value, array $attr = …) → protected method CliDumper.style(string $style, string $value, array $attr = …): string - changed:
protected method CliDumper.supportsColors() → protected method CliDumper.supportsColors(): bool - changed:
protected method HtmlDumper.style(string $style, string $value, array $attr = …) → protected method HtmlDumper.style(string $style, string $value, array $attr = …): string - added:
protected static property CliDumper.unicodeCharsRx
- changed:
constructor SourceContextProvider(?string $charset = …, ?string $projectDir = …, ?FileLinkFormatter $fileLinkFormatter = …, int $limit = …) → constructor SourceContextProvider(?string $charset = …, ?string $projectDir = …, FileLinkFormatter|LegacyFileLinkFormatter|null $fileLinkFormatter = …, int $limit = …)
- changed:
function dd(...$vars) → function dd(mixed ...$vars): never - changed:
function dump($var, ...$moreVars) → function dump(mixed ...$vars): mixed