Skip to content

fix: NoUnreachableDefaultArgumentValueFixer - fix for closures#9409

Merged
keradus merged 2 commits intoPHP-CS-Fixer:masterfrom
6b7562617765726c6f73:fix_NoUnreachableDefaultArgumentValueFixer
Feb 11, 2026
Merged

fix: NoUnreachableDefaultArgumentValueFixer - fix for closures#9409
keradus merged 2 commits intoPHP-CS-Fixer:masterfrom
6b7562617765726c6f73:fix_NoUnreachableDefaultArgumentValueFixer

Conversation

@kubawerlos
Copy link
Copy Markdown
Member

@kubawerlos kubawerlos commented Feb 7, 2026

Fixes #9400

All added tests were previously erroring/failing.

@kubawerlos kubawerlos force-pushed the fix_NoUnreachableDefaultArgumentValueFixer branch from 92a89cd to d964280 Compare February 7, 2026 10:56
@coveralls
Copy link
Copy Markdown

Coverage Status

coverage: 92.944% (-0.01%) from 92.956%
when pulling 27adee9 on 6b7562617765726c6f73:fix_NoUnreachableDefaultArgumentValueFixer
into 7a54321 on PHP-CS-Fixer:master.

@kubawerlos kubawerlos enabled auto-merge (squash) February 7, 2026 11:14
@kubawerlos kubawerlos added topic/PHP8.4 Related to features available in PHP 8.4+ topic/PHP8.5 Related to features available in PHP 8.5+ labels Feb 8, 2026
@github-actions github-actions Bot added this to the PHP 8.5 initial compatibility milestone Feb 8, 2026
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.

tests looks good. I failed with capacity to cover the src, but trust your code on it. Can we extend ArgumentsAnalyzerTest?

@keradus
Copy link
Copy Markdown
Member

keradus commented Feb 11, 2026

Let me merge as-is for now. If you can extend the tests separately, would be great !

@keradus keradus merged commit aacb91c into PHP-CS-Fixer:master Feb 11, 2026
39 checks passed
@keradus keradus deleted the fix_NoUnreachableDefaultArgumentValueFixer branch February 11, 2026 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bug topic/PHP8.4 Related to features available in PHP 8.4+ topic/PHP8.5 Related to features available in PHP 8.5+

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fixer fails if parameter has a Closure default value

3 participants