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] backport phpstan in 1.x #183

Merged
merged 1 commit into from
Apr 16, 2024

Conversation

jrushlow
Copy link
Collaborator

hindsight is 20/20 eh? #177 replaced psalm w/ phpstan WooHoo! But - I goofed... In reset-password, maker-bundle, etc... I:

  • added phpstan
  • generated a baseline
  • merged
  • created PR's to fix issues & remove baseline entries until the baseline was gone.

Here i did the opposite. added phpstan -> fixed the issues -> merged in 2.x. Leaving 1.x w/o static coverage (psalm is no longer used). This PR cherry picks the bare minimum to get phpstan into 1.x w/ a generated baseline. The issues suppressed in phpstan-baseline.neon have already been fixed in 2.x.

Going forward in 1.x - we won't fix any of the issues in the baseline (e.g. fix -> remove suppression) as this is already done (2.x). But - we won't add any new suppression's to the baseline in 1.x either. Otherwise I think, aside from doing duplicate work, we'd start to drift into merge hell... It's already hot enough here in Florida - let's not go any further south.

That said, if we need to fix a one off suppression here and there in 1.x - so be it...

@jrushlow jrushlow added the Minor Minor Enhancement label Apr 15, 2024
@jrushlow jrushlow merged commit d3c4b20 into SymfonyCasts:main Apr 16, 2024
8 checks passed
@jrushlow jrushlow deleted the ci/add-phpstan-baseline branch April 16, 2024 11:21
jrushlow added a commit to jrushlow/verify-email-bundle that referenced this pull request Apr 16, 2024
* main:
  minor SymfonyCasts#183 [ci] backport phpstan in 1.x
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