Skip to content

Commit abdd672

Browse files
[VarDumper] fix for change in PHP 7.4.6
1 parent 13c0316 commit abdd672

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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)