-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
bug | minor | debug-bundle 4.1.0 / var-dumper 4.1.0 #27493
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for the report, but unfortunately I don't understand how you get this exception to be raised. 🤔
I don't get this exception on my side, so could you provide a reproducer? |
Smallest repro scenario based on third party customer application: https://gist.github.com/alcohol/ec4bac4495ef586d635a37a95f33932f Replace Run:
Output (should) be:
|
Erf. It's because the kernel is still |
Alright, I think I get it. |
That resolves it. |
… (ogizanagi) This PR was merged into the 4.1 branch. Discussion ---------- [DebugBundle] DebugBundle::registerCommands should be noop | Q | A | ------------- | --- | Branch? | 4.1 <!-- see below --> | Bug fix? | yes | New feature? | no <!-- don't forget to update src/**/CHANGELOG.md files --> | BC breaks? | no <!-- see https://symfony.com/bc --> | Deprecations? | no <!-- don't forget to update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tests pass? | yes <!-- please add some, will be required by reviewers --> | Fixed tickets | #27493 <!-- #-prefixed issue number(s), if any --> | License | MIT | Doc PR | N/A Commits ------- dd4b0ed [DebugBundle] DebugBundle::registerCommands should be noop
Symfony version(s) affected: 4.1.0
Description
The ServerDumpPlaceholderCommand in debug bundle 4.1.0 raises a warning.
This is because it copies its definition from the command it wraps (
Symfony\Component\VarDumper\Command\ServerDumpCommand
) which does not explicitly set a name, but instead makes use of the lazy loading feature which involves specifying the name through a static property called$defaultName
.Possible Solution
Specify a static
$defaultName
property just like the command it wraps has.Additional context
The text was updated successfully, but these errors were encountered: