From 924822c2e85b7e86ee55170723cfaf4d71e4bf42 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Sat, 16 May 2020 10:59:45 +0200 Subject: [PATCH] [VarDumper] fix for change in PHP 7.4.6 --- src/Symfony/Component/VarDumper/Caster/SplCaster.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Symfony/Component/VarDumper/Caster/SplCaster.php b/src/Symfony/Component/VarDumper/Caster/SplCaster.php index 283c5613d0..a30c2bce9e 100644 --- a/src/Symfony/Component/VarDumper/Caster/SplCaster.php +++ b/src/Symfony/Component/VarDumper/Caster/SplCaster.php @@ -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';