Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.6k
[VarDumper] FixesTyped property Symfony\Component\VarDumper\Dumper\CliDumper::$colors must not be accessed before initialization
#53521
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Typed property Symfony\Component\VarDumper\Dumper\CliDumper::$colors must not be accessed before initialization
nicolas-grekas left a comment• edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
if we're missing an initialization here, it means the patch should likely go on 5.4
Uh oh!
There was an error while loading.Please reload this page.
Not exactly, since 7.0 changed from |
…CliDumper::$colors must not be accessed before initialization`
Thank you@crynobone. |
…r` (nicolas-grekas)This PR was merged into the 5.4 branch.Discussion---------- [VarDumper] Fix missing colors initialization in `CliDumper`| Q | A| ------------- | ---| Branch? | 5.4| Bug fix? | yes| New feature? | no| Deprecations? | no| Issues | -| License | MITBackporting#53521 to 5.4Commits-------6817109 [VarDumper] Fix missing colors initialization in CliDumper
Uh oh!
There was an error while loading.Please reload this page.
Fixes the following error:
Other methods in the class start with
$this->colors ??= $this->supportsColors();
. I believe this should have the same code.