-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[VarDumper] Add maxDepth & maxStringLength display options #18948
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
); | ||
protected $displayOptions = array( |
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.
should be private
d4b7ee9
to
bfb9087
Compare
display:none; | ||
} | ||
pre.sf-dump .max-string-length.collapsed .expanded { | ||
display:none |
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.
Missing delimiter.
b5526ef
to
c7acc7f
Compare
@nicolas-grekas Can you finish this one? |
@nicolas-grekas What's the status of this one? |
I'm on it :) |
c7acc7f
to
77da349
Compare
1a83101
to
3321b96
Compare
3839ad5
to
b885c8d
Compare
b885c8d
to
998ff33
Compare
I finally managed to finish this one. @MGDSoft FYI, I removed the initDepth/maxDepth distinction: it felt strange when playing with the UI. I kept only your initDepth behavior, renamed as maxDepth. See this fiddle to try the resulting behavior (maxDepth=2): Status: needs review |
@@ -76,6 +82,17 @@ public function setStyles(array $styles) | |||
} | |||
|
|||
/** | |||
* Configures display options. | |||
* | |||
* @param array $displayOptions A map of display options to customize the behavior. |
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.
no dot at the end
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.
ahah, you've been doing that for a long time, working on a PR to fix that :)
Thank you @nicolas-grekas. |
…ions (MGDSoft, nicolas-grekas) This PR was merged into the 3.2-dev branch. Discussion ---------- [VarDumper] Add maxDepth & maxStringLength display options | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #16741 | License | MIT | Doc PR | - Takes over #18148 to add display options to html dumps. Status: needs work Commits ------- 998ff33 [VarDumper] Tweak display options implementation 58eb665 [VarDumper] Add maxDepth & maxStringLength display options
Nice :) |
Takes over #18148 to add display options to html dumps.
Status: needs work