Skip to content

Make rule errors a little bit more DRY#3035

Merged
ondrejmirtes merged 1 commit intophpstan:1.11.xfrom
axlon:dry-rule-errors
May 1, 2024
Merged

Make rule errors a little bit more DRY#3035
ondrejmirtes merged 1 commit intophpstan:1.11.xfrom
axlon:dry-rule-errors

Conversation

@axlon
Copy link
Contributor

@axlon axlon commented Apr 30, 2024

Noticed this message is used a lot throughout the codebase, and it could probably use a bit of DRYness, this would make it easier to change the message down the line it ever became necessary.

Additionally, this also makes it easier for PHPStan extensions' rules to use the exact same tip as PHPStan itself, if they do respect this setting being on or off

@ondrejmirtes ondrejmirtes merged commit a16184e into phpstan:1.11.x May 1, 2024
@ondrejmirtes
Copy link
Member

Thank you! 👍

@axlon axlon deleted the dry-rule-errors branch May 2, 2024 05:59
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