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

PHPStan (+PHPUnit) corrections, pt 1 #1341

Merged
merged 6 commits into from
Jan 1, 2025
Merged

PHPStan (+PHPUnit) corrections, pt 1 #1341

merged 6 commits into from
Jan 1, 2025

Conversation

garrettw
Copy link
Contributor

@garrettw garrettw commented Dec 30, 2024

Addresses #1340

Decided to include PHPUnit deprecation fixes while I'm at it, since it was quick and easy.
This one should be pretty straightforward; there aren't many changes to actual code that could be impactful.

Fixes #1338

@garrettw garrettw added php Pull requests that update PHP code backend Backend related issues and pull requests DX Impacts developer experience labels Dec 30, 2024
@garrettw garrettw marked this pull request as draft December 30, 2024 12:34
@garrettw garrettw changed the title PHPStan corrections, pt 1 PHPStan (+PHPUnit) corrections, pt 1 Dec 31, 2024
@garrettw garrettw marked this pull request as ready for review December 31, 2024 08:38
@melroy89 melroy89 self-requested a review December 31, 2024 14:48
@melroy89
Copy link
Member

melroy89 commented Jan 1, 2025

Since we don't see anything in the workflow regarding these warnings. Would it be a good idea to introduce a PHPStan workflow/step as well?

@garrettw
Copy link
Contributor Author

garrettw commented Jan 1, 2025

Yes, but I don’t think we’re ready for it yet. Even if it were marked as not required, it would make every test run fail with a red X until all ~2200 issues are fixed, which I don’t think is helpful. I would support adding it after I finish going through and fixing everything, though.

@garrettw garrettw merged commit 4ba6a96 into main Jan 1, 2025
7 checks passed
@garrettw garrettw deleted the phpstan-fixes branch January 1, 2025 22:42
@garrettw garrettw restored the phpstan-fixes branch January 2, 2025 01:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Backend related issues and pull requests DX Impacts developer experience php Pull requests that update PHP code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix unit tests that trigger deprecation warnings
2 participants