Skip to content

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)

private static array $labelAliases = [
private const array LABEL_ALIASES = [
'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 OskarStark and stof 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