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

Upgrade to PHPStan 2 #1547

Merged
merged 1 commit into from
Jan 3, 2025
Merged

Upgrade to PHPStan 2 #1547

merged 1 commit into from
Jan 3, 2025

Conversation

rosier
Copy link
Contributor

@rosier rosier commented Dec 11, 2024

This PR:

  • Upgrades to PHPStan 2
  • Adds a separate test job for PHPStan
  • Turns off the doctrine rules
  • Merges the config files phpstan.dist.neon and phpstan.neon.dist

I disabled the doctrine rules because all the errors coming from this were basically ignored permanently anyway.

I keep the config file phpstan.dist.neon from the recipe https://github.com/symfony/recipes-contrib/blob/main/phpstan/phpstan/1.0/phpstan.dist.neon and added the rest of the config into that file.

Copy link
Member

@xabbuh xabbuh left a comment

Choose a reason for hiding this comment

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

LGTM

@javiereguiluz
Copy link
Member

A nice upgrade and perfectly explained. Yes, disabling Doctrine rules for now seems the best decision. Jan, as always, thanks a lot for your help in this project 🙏

@javiereguiluz javiereguiluz merged commit ef6be89 into symfony:main Jan 3, 2025
7 checks passed
@rosier rosier deleted the phpstan-v2 branch January 3, 2025 17:03
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.

3 participants