Skip to content

feat: Fix whitespace between const type and const name.#8442

Merged
kubawerlos merged 4 commits intoPHP-CS-Fixer:masterfrom
obresoft:7446-fix-whitespace-between-const-type-and-const-name
Feb 20, 2025
Merged

feat: Fix whitespace between const type and const name.#8442
kubawerlos merged 4 commits intoPHP-CS-Fixer:masterfrom
obresoft:7446-fix-whitespace-between-const-type-and-const-name

Conversation

@obresoft
Copy link
Copy Markdown
Contributor

Issue: #7446

@obresoft obresoft changed the title Fix whitespace between const type and const name Fix whitespace between const type and const name. Feb 17, 2025
@obresoft obresoft changed the title Fix whitespace between const type and const name. feat: Fix whitespace between const type and const name. Feb 17, 2025
@coveralls
Copy link
Copy Markdown

coveralls commented Feb 17, 2025

Coverage Status

coverage: 94.976% (-0.003%) from 94.979%
when pulling d614520 on obresoft:7446-fix-whitespace-between-const-type-and-const-name
into defd8e0 on PHP-CS-Fixer:master.

->setAllowedValues([new AllowedValueSubset(['function', 'property'])])
->setDefault(['function', 'property'])
->setAllowedValues([new AllowedValueSubset(['function', 'property', 'constant'])])
->setDefault(['function', 'property', 'constant'])
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
->setDefault(['function', 'property', 'constant'])
->setDefault(['function', 'property']) // @TODO add 'constant' on next major 4.0

to keep BC

Copy link
Copy Markdown
Member

@keradus keradus left a comment

Choose a reason for hiding this comment

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

overall, looking nice so far, thanks for picking this up!

Found one change needed to be updated.

PR is draft, anything else you have in plans here?

@obresoft
Copy link
Copy Markdown
Contributor Author

Thank you for your feedback. The PR is ready for review—I just wanted to double-check it.

@obresoft obresoft marked this pull request as ready for review February 17, 2025 22:27
@kubawerlos kubawerlos merged commit 5aacd80 into PHP-CS-Fixer:master Feb 20, 2025
@kubawerlos
Copy link
Copy Markdown
Member

Thank you @obresoft

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants