Skip to content

fix: SingleSpaceAroundConstructFixer - handle alternative syntax#8317

Merged
kubawerlos merged 8 commits intoPHP-CS-Fixer:masterfrom
timsmid:single-space-alt-syntax
Mar 6, 2025
Merged

fix: SingleSpaceAroundConstructFixer - handle alternative syntax#8317
kubawerlos merged 8 commits intoPHP-CS-Fixer:masterfrom
timsmid:single-space-alt-syntax

Conversation

@timsmid
Copy link
Contributor

@timsmid timsmid commented Dec 10, 2024

Fixes #8316.

@coveralls
Copy link

coveralls commented Dec 10, 2024

Coverage Status

coverage: 94.848%. remained the same
when pulling b7b5dd1 on timsmid:single-space-alt-syntax
into 4fbbd57 on PHP-CS-Fixer:master.

Copy link
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.

-0

i'm explicitly encouraging to not use alternative syntax, only case I see for it is in templates, but I also encourage to use any templates engine rather than directly PHP for it.

with that, I'm not gonna spend any time to support alternative syntax myself, but OKish to merge validated changes provided by userland.

@kubawerlos kubawerlos changed the title fix: handle alternative syntax in single_space_around_construct rule fix: SingleSpaceAroundConstructFixer - handle alternative syntax Feb 21, 2025
@kubawerlos kubawerlos merged commit 695c199 into PHP-CS-Fixer:master Mar 6, 2025
29 checks passed
@kubawerlos
Copy link
Member

Thank you @timsmid

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

single_space_around_construct ignored for alternative syntax

4 participants