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

Merged
merged 1 commit into from
May 12, 2025

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 ?

Copy link
Contributor

Choose a reason for hiding this comment

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

Let's revert

Copy link
Contributor

Choose a reason for hiding this comment

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

Just read the rest of the code, I think it's fine.

@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
@fabpot fabpot force-pushed the chore/phpstan-7 branch from 158a192 to 2206603 Compare May 12, 2025 19:07
@fabpot
Copy link
Contributor

fabpot commented May 12, 2025

Thank you @smnandre.

@fabpot fabpot merged commit c8a09d4 into symfony-tools:master May 12, 2025
4 checks passed
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.

4 participants