Skip to content

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