-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
[VarDumper] Dumping exceptions is now more compact #19289
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 looks much better. Thanks Nicolas! I'd also suggest to not use 1-letter variable names because it makes code hard to understand and maintain in the long term. |
6776dd0 to
01dfc6c
Compare
| $call = isset($frames[$i]['function']) ? (isset($frames[$i]['class']) ? $frames[$i]['class'].$frames[$i]['type'] : '').$frames[$i]['function'].'()' : '???'; | ||
|
|
||
| $a[Caster::PREFIX_VIRTUAL.$j.'. '.$call.$lastCall] = new FrameStub( | ||
| $k = $call.$lastCall; |
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.
please rename these variables to more meaningful names
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.
updated
514ad94 to
90fd3b0
Compare
| foreach ($frame->value as $label => $frame) { | ||
| } | ||
| } else { | ||
| $label = ''; |
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.
Can this statement be moved before the if condition to prevent the else statement?
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.
updated, no need for any if/else in fact
90fd3b0 to
9a2160d
Compare
|
ping @symfony/deciders |
|
Status: needs work |
9a2160d to
51547b7
Compare
|
Updated to be compact also when args are dumped. Test cases added. Status: needs review |
51547b7 to
19e9cbe
Compare
…colas-grekas) This PR was merged into the 3.2-dev branch. Discussion ---------- [VarDumper] Dumping exceptions is now more compact | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | no | Fixed tickets | - | License | MIT | Doc PR | - Before:  Commits ------- 19e9cbe [VarDumper] Dumping exceptions is now more compact

Before:
