[VarDumper] fix for change in PHP 7.4.6

This commit is contained in:
Nicolas Grekas 2020-05-16 10:59:45 +02:00
parent cec0dfe5b3
commit 924822c2e8

View File

@ -89,6 +89,8 @@ class SplCaster
];
$prefix = Caster::PREFIX_VIRTUAL;
unset($a["\0SplFileInfo\0fileName"]);
unset($a["\0SplFileInfo\0pathName"]);
if (false === $c->getPathname()) {
$a[$prefix.'⚠'] = 'The parent constructor was not called: the object is in an invalid state';