Skip to content

feat: phpstan level 5 #446

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

Merged
merged 21 commits into from
Dec 19, 2024
Merged

feat: phpstan level 5 #446

merged 21 commits into from
Dec 19, 2024

Conversation

SRWieZ
Copy link
Member

@SRWieZ SRWieZ commented Dec 12, 2024

Put the entire project through PHPStan level 5.

  • Found some bugs that are now fixed.
  • I made one change per commit and recommend keeping them, even though I had some trouble understanding one test bench error. 😅
  • One fix is duplicated from Fixes and improvements to powerMonitor #445, but it shouldn't cause any merge issues.
  • I don't know why static analysis won't be applied to this PR.
  • Added a composer qa script to ensure code quality assurance.
  • There is an alternative to 585fb47, but it would involve breaking changes. Unfortunately, asymmetrical visibility has only been available since PHP 8.4.

@SRWieZ SRWieZ marked this pull request as ready for review December 12, 2024 11:15
@SRWieZ
Copy link
Member Author

SRWieZ commented Dec 12, 2024

Ready for review!

Copy link
Member

@simonhamp simonhamp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only one real concern here, but I can potentially be persuaded 😂

@SRWieZ
Copy link
Member Author

SRWieZ commented Dec 18, 2024

Ready!

@simonhamp simonhamp merged commit 1a8151f into NativePHP:main Dec 19, 2024
21 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.

2 participants