Skip to content

chore: raise PHPStan to level 9#1

Merged
k2gl merged 1 commit into
mainfrom
chore/phpstan-level-9
Jun 5, 2026
Merged

chore: raise PHPStan to level 9#1
k2gl merged 1 commit into
mainfrom
chore/phpstan-level-9

Conversation

@k2gl
Copy link
Copy Markdown
Owner

@k2gl k2gl commented Jun 5, 2026

Raise PHPStan from level 6 to 9 (matching the rest of the collection).

Level 9 flagged casting the validated mixed value to string; both validators now guard it with the scalar/Stringable check used by Symfony itself.

@k2gl k2gl force-pushed the chore/phpstan-level-9 branch from 7b6f3ae to e32f021 Compare June 5, 2026 17:42
@k2gl k2gl changed the title chore: raise PHPStan analysis to level 9 chore: raise PHPStan to level 9 Jun 5, 2026
Guard the validated value with a scalar/Stringable check before
stringifying it in the violation message.
@k2gl k2gl force-pushed the chore/phpstan-level-9 branch from e32f021 to 992b140 Compare June 5, 2026 18:02
@k2gl k2gl merged commit 2793526 into main Jun 5, 2026
12 checks passed
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.

1 participant