Skip to content

chore(phpstan): set level 8, fix issues + bump PHPStan CI version #270

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

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

smnandre
Copy link
Contributor

@smnandre smnandre commented Apr 29, 2025

Set PHPStan from level 5 to level 7 level 8

  • add missing return types
  • add missing parameters types
  • and minor PHPStan issues

+ bump PHPStan to 2.1 on the CI

@smnandre
Copy link
Contributor Author

Damn... did not get these errors locally 😶‍🌫️ (will fix tomorrow)

'bridge\doctrine' => 'DoctrineBridge',
'bridge/doctrine' => 'DoctrineBridge',
Copy link
Contributor

Choose a reason for hiding this comment

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

Why removing them ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

DX ? Having 5 felt easier to read/maintain, but this was not really in the scope of the PR i must admit. Should i revert ?

@smnandre smnandre changed the title chore(phpstan): set level 7 and fix related issues chore(phpstan): set level 8, fix issues + bump PHPStan CI version Apr 30, 2025
@smnandre smnandre requested review from stof and OskarStark April 30, 2025 01:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants