From 3d3c65fa2ab38f1c0503d52dbcc42323dd4f59e1 Mon Sep 17 00:00:00 2001 From: Alexandre Daubois Date: Tue, 5 Jul 2022 10:17:17 +0200 Subject: [PATCH] [VarExporter] Fix instanciation test on PHP 8.2 with readonly properties --- src/Symfony/Component/VarExporter/Internal/Hydrator.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/Symfony/Component/VarExporter/Internal/Hydrator.php b/src/Symfony/Component/VarExporter/Internal/Hydrator.php index 221d04f234664..021cf4dee428b 100644 --- a/src/Symfony/Component/VarExporter/Internal/Hydrator.php +++ b/src/Symfony/Component/VarExporter/Internal/Hydrator.php @@ -208,10 +208,6 @@ public static function getSimpleHydrator($class) }; } - if (!$classReflector->isInternal()) { - return $baseHydrator->bindTo(null, $class); - } - if ($classReflector->name !== $class) { return self::$simpleHydrators[$classReflector->name] ??= self::getSimpleHydrator($classReflector->name); }