From 454df539316db436303a97c60292e01e5b21c2d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81ngel=20Guzm=C3=A1n=20Maeso?= Date: Wed, 13 Mar 2024 09:40:21 +0100 Subject: [PATCH] [VarDumper] prevent error in value to Typed property must not be accessed before initialization --- src/Symfony/Component/VarDumper/Cloner/Stub.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/VarDumper/Cloner/Stub.php b/src/Symfony/Component/VarDumper/Cloner/Stub.php index 4070b981d2374..4455a362b88cb 100644 --- a/src/Symfony/Component/VarDumper/Cloner/Stub.php +++ b/src/Symfony/Component/VarDumper/Cloner/Stub.php @@ -35,7 +35,7 @@ class Stub public int $type = self::TYPE_REF; public string|int|null $class = ''; - public mixed $value; + public mixed $value = null; public int $cut = 0; public int $handle = 0; public int $refCount = 0;