-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
[Console] fix profiler with overridden run() method
#61138
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
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
run() methodrun() method
5a381da to
0a2a602
Compare
|
The test files are missing the license header. |
b058b1f to
0353eb1
Compare
The missing license headers have been added and yes, version 6.4 is affected, so I changed the target from version 7.2 to version 6.4. |
src/Symfony/Component/Console/Tests/Command/TraceableCommandTest.php
Outdated
Show resolved
Hide resolved
chalasr
left a comment
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.
Looks good
8d930fc to
fb0cd65
Compare
|
Thank you @vinceAmstoutz. |
|
This breaks the protected functions decoration. We need to either delete some (now useless) code or find another way to fix this. |
When a command overrides the
run()method, using the--profileoption would bypass this custom logic. This was caused byTraceableCommandcallingparent::run()instead of delegating the call to the decorated command.This change ensures
$this->command->run()is called, preserving the overridden logic and allowing the profiler to work as expected.