Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[DebugBundle][VarDumper] Fix dump labels compatibility#50347

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

Conversation

fancyweb
Copy link
Contributor

QA
Branch?6.3
Bug fix?yes
New feature?no
Deprecations?no
Tickets-
LicenseMIT
Doc PR-

This PR fixes the handling of dumps labels when the DebugBundle is enabled and stays BC with older versions.

@javiereguiluz Unfortunately, the CSS of the web profiler toolbar is not perfect for labels and invisible characters:
Screenshot from 2023-05-16 18-31-01
Could you take care of this part plz? 🙏

@carsonbotcarsonbot added this to the6.3 milestoneMay 16, 2023
@carsonbotcarsonbot changed the title[VarDumper][DebugBundle] Fix dump labels compatibility[DebugBundle][VarDumper] Fix dump labels compatibilityMay 16, 2023
@nicolas-grekas
Copy link
Member

can you please confirm that the label is a link to the source?

@fancyweb
Copy link
ContributorAuthor

DebugBundle behavior is to have links on the file (FooAction) not on the label. But wait I've found one more problem and I'm crafting a better patch.

@fancywebfancywebforce-pushed thevar-dumper/fix-labels-debug-bundle branch from05d5dca to7c55551CompareMay 17, 2023 08:45
@@ -25,7 +25,7 @@ function dump(mixed ...$vars): mixed
return null;
}

if (isset($vars[0]) && 1 === count($vars)) {
if (array_key_exists(0,$vars) && 1 === count($vars)) {
Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Fix dump(null) showing 1^ null

@nicolas-grekasnicolas-grekasforce-pushed thevar-dumper/fix-labels-debug-bundle branch from7c55551 to8a8b5cdCompareMay 19, 2023 11:56
@nicolas-grekas
Copy link
Member

Thank you@fancyweb.

@nicolas-grekasnicolas-grekas merged commit761d915 intosymfony:6.3May 19, 2023
@fancywebfancyweb deleted the var-dumper/fix-labels-debug-bundle branchMay 19, 2023 12:13
@fabpotfabpot mentioned this pull requestMay 22, 2023
@bobthecow
Copy link
Contributor

@fancyweb@nicolas-grekas This change introduces a backwards compatibility break.See PsySH dependency test failures at dev stability starting with this change.

@bobthecow
Copy link
Contributor

Specifically,PsySH extends VarDumper and uses itsstyles map. It looks like this change doesn't addlabel to the map, but expects callers to usedefault instead, e.g.:

$this->styles['label' ===$style ?'default' :$style]

nicolas-grekas added a commit that referenced this pull requestMay 23, 2023
This PR was merged into the 6.3 branch.Discussion----------[VarDumper] Fix `dd()` showing line with `null`| Q             | A| ------------- | ---| Branch?       | 6.3| Bug fix?      | yes| New feature?  | no| Deprecations? | no| Tickets       | -| License       | MIT| Doc PR        | -Similar to#50347 (comment) but for the `dd()` function:```phpdd(null);```![image](https://github.com/symfony/symfony/assets/2445045/5615db1d-d48d-4720-85ce-239d3921f624)Commits-------07d318a [VarDumper] Fix `dd()` showing line with `null`
nicolas-grekas added a commit that referenced this pull requestMay 25, 2023
…rekas)This PR was merged into the 6.3 branch.Discussion----------[HttpKernel][VarDumper] Fix dumping with labels| Q             | A| ------------- | ---| Branch?       | 6.3| Bug fix?      | yes| New feature?  | no| Deprecations? | no| Tickets       | -| License       | MIT| Doc PR        | -Shouldfix#50347 (comment) /cc `@bobthecow`Also improves the display in the WDT:![image](https://github.com/symfony/symfony/assets/243674/956f7c7d-5569-4ea2-97f3-01d000f34532)![image](https://github.com/symfony/symfony/assets/243674/6a497d1e-5291-45a7-8af3-1cf11cafded6)Commits-------e824eb0 [VarDumper][HttpKernel] Fix dumping with labels
symfony-splitter pushed a commit to symfony/var-dumper that referenced this pull requestMay 25, 2023
…rekas)This PR was merged into the 6.3 branch.Discussion----------[HttpKernel][VarDumper] Fix dumping with labels| Q             | A| ------------- | ---| Branch?       | 6.3| Bug fix?      | yes| New feature?  | no| Deprecations? | no| Tickets       | -| License       | MIT| Doc PR        | -Shouldfixsymfony/symfony#50347 (comment) /cc `@bobthecow`Also improves the display in the WDT:![image](https://github.com/symfony/symfony/assets/243674/956f7c7d-5569-4ea2-97f3-01d000f34532)![image](https://github.com/symfony/symfony/assets/243674/6a497d1e-5291-45a7-8af3-1cf11cafded6)Commits-------e824eb051e [VarDumper][HttpKernel] Fix dumping with labels
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas left review comments

@stofstofstof left review comments

Assignees
No one assigned
Projects
None yet
Milestone
6.3
Development

Successfully merging this pull request may close these issues.

5 participants
@fancyweb@nicolas-grekas@bobthecow@stof@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp