Skip to content

Commit b0b0b47

Browse files
bug #54265 [VarDumper] prevent error in value to Typed property must not be accessed before initialization (shakaran)
This PR was submitted for the 7.1 branch but it was squashed and merged into the 7.0 branch instead. Discussion ---------- [VarDumper] prevent error in value to Typed property must not be accessed before initialization … | Q | A | ------------- | --- | Branch? | 7.0 | Bug fix? | yes | New feature? | no | Deprecations? | no | License | MIT Using Road Runner in webprofiler bundle the following error appears from vendor/symfony/web-profiler-bundle/Resources/views/Profiler/bag.html.twig:12: An exception has been thrown during the rendering of a template ("Typed property Symfony\Component\VarDumper\Cloner\Stub::$value must not be accessed before initialization"). This helps to prevent that Twig\Error\RuntimeError Commits ------- 454df53 [VarDumper] prevent error in value to Typed property must not be accessed before initialization
2 parents 3c5b87f + 454df53 commit b0b0b47

File tree

1 file changed

+1
-1
lines changed
  • src/Symfony/Component/VarDumper/Cloner

1 file changed

+1
-1
lines changed

src/Symfony/Component/VarDumper/Cloner/Stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class Stub
3535

3636
public int $type = self::TYPE_REF;
3737
public string|int|null $class = '';
38-
public mixed $value;
38+
public mixed $value = null;
3939
public int $cut = 0;
4040
public int $handle = 0;
4141
public int $refCount = 0;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy