Skip to content

Conversation

schlndh
Copy link
Contributor

@schlndh schlndh commented Oct 3, 2025

I relaxed the strict printf parameter check as described in this comment.

IMO checkStrictPrintfPlaceholderTypes: true should mean precisely the level of strictness that's appropriate for phpstan-strict-rules.

Beyond that it may be desirable to configure it to be more/less strict. But for now, those who want it less strict will have to set it to false and they will be no worse off than before I introduced it. Those who want it more strict can keep it turned on and they'll be at least somewhat better off than before I introduced it.

@ondrejmirtes ondrejmirtes merged commit 806f1a1 into phpstan:2.1.x Oct 3, 2025
546 of 550 checks passed
@ondrejmirtes
Copy link
Member

Thank you!

@schlndh schlndh deleted the feature-relaxStrictPrintfParameterCheck branch October 3, 2025 11:16
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.

2 participants