8000 [VarDumper] fix for change in PHP 7.4.6 · symfony/symfony@924822c · GitHub
[go: up one dir, main page]

Skip to content

Commit 924822c

Browse files
[VarDumper] fix for change in PHP 7.4.6
1 parent cec0dfe commit 924822c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Symfony/Component/VarDumper/Caster/SplCaster.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ public static function castFileInfo(\SplFileInfo $c, array $a, Stub $stub, $isNe
8989
];
9090

9191
$prefix = Caster::PREFIX_VIRTUAL;
92+
unset($a["\0SplFileInfo\0fileName"]);
93+
unset($a["\0SplFileInfo\0pathName"]);
9294

9395
if (false === $c->getPathname()) {
9496
$a[$prefix.''] = 'The parent constructor was not called: the object is in an invalid state';

0 commit comments

Comments
 (0)
0