Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHPStan level 9 with bleeding edge #197

Open
wants to merge 15 commits into
base: 8.x
Choose a base branch
from

Conversation

spaze
Copy link
Contributor

@spaze spaze commented Feb 29, 2024

Update PHPStan level to 9/max with bleeding edge. You can't go any higher :-) #172 inspired me to do this, to make sure the types are correct throughout the lib.

Native types could be used instead of docblocks if support for older PHP version is dropped, but first I wanted to make sure the lib is on a highest possible PHPStan level to make adding native types a bit safer. Can add them in a next PR once this is merged for example.

This branch is based on #196 branch to make tests run on all PHP versions, probably should be rebased before merging, can take care of that.

I'm not sure what to do with the failing Style CI test that wants me to update a preexisting code like this:

- exit();
+ exit;

I can update it if it looks like what's expected.

@spaze spaze force-pushed the spaze/phpstan++ branch 3 times, most recently from c5594fe to b384d05 Compare February 29, 2024 03:27
@spaze spaze marked this pull request as ready for review February 29, 2024 03:29
@spaze spaze changed the title PHPStan++ PHPStan level 9 with bleeding edge Feb 29, 2024
@spaze spaze force-pushed the spaze/phpstan++ branch 5 times, most recently from caa76c2 to ede27ac Compare February 29, 2024 04:02
@spaze spaze marked this pull request as draft February 29, 2024 04:02
@spaze spaze marked this pull request as ready for review February 29, 2024 04:05
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.

None yet

1 participant