Skip to content

Raise PHPStan from level 5 to level 9#11

Merged
alganet merged 1 commit intomasterfrom
phpstan-lvl
Mar 15, 2026
Merged

Raise PHPStan from level 5 to level 9#11
alganet merged 1 commit intomasterfrom
phpstan-lvl

Conversation

@alganet
Copy link
Member

@alganet alganet commented Mar 15, 2026

Add generic type parameters to SplObjectStorage properties, CollectionIterator (@extends), Collection (@implements), and RecursiveIteratorIterator return types. Fix null-safety issues in Collection stack/offsetGet, add string casts for preg_replace returns in AbstractStyle, and add type assertions in tests.

Add generic type parameters to SplObjectStorage properties,
CollectionIterator (@extends), Collection (@implements), and
RecursiveIteratorIterator return types. Fix null-safety issues
in Collection stack/offsetGet, add string casts for preg_replace
returns in AbstractStyle, and add type assertions in tests.
@alganet alganet marked this pull request as ready for review March 15, 2026 06:51
@alganet alganet merged commit c9d03f1 into master Mar 15, 2026
2 checks passed
@alganet alganet deleted the phpstan-lvl branch March 15, 2026 06:52
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