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

[ci] implement phpstan for static analysis of the codebase #1498

Merged
merged 7 commits into from
Apr 5, 2024

Conversation

jrushlow
Copy link
Collaborator

@jrushlow jrushlow commented Apr 2, 2024

  • uses PHPStan to help catch bugs

We'll start with the scope below and slowly open it up as the code base is updated to the desired PHPStan level.

Scope

  • src/Maker
  • tests/Command
  • tests/Docker
  • tests/Maker

Optional Maker Dependencies - tools/phpstan/includes

In our root composer.json, we don't require --dev packages that are not specifically needed for MakerBundle to function. e.g. api-platform. But we do still need those packages for phpstan. for now, the composer.json in the includes dir will satisfy that need and gives MakerBundle dev's the added benefit of code completion in the IDE.

We currently do not require those "maker specific" packages in our root composer.json because it would have adverse side effects in some of our tests. I think in MakerBundle 2.x and/or #1466 - we'll change how we manage dependencies.

@jrushlow jrushlow marked this pull request as ready for review April 5, 2024 15:13
@jrushlow jrushlow changed the title phpstan [ci] implement phpstan for static analysis of the codebase Apr 5, 2024
@jrushlow jrushlow removed the Status: Needs Work Additional work is needed label Apr 5, 2024
@jrushlow jrushlow mentioned this pull request Apr 5, 2024
2 tasks
@jrushlow jrushlow merged commit 30cdf17 into symfony:main Apr 5, 2024
7 checks passed
@jrushlow jrushlow deleted the minor/phpstan branch April 5, 2024 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Minor Minor Enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant