Skip to content

Fix PHPUnit warning#5484

Merged
VincentLanglet merged 1 commit intophpstan:2.1.xfrom
VincentLanglet:fixPhpunit
Apr 16, 2026
Merged

Fix PHPUnit warning#5484
VincentLanglet merged 1 commit intophpstan:2.1.xfrom
VincentLanglet:fixPhpunit

Conversation

@VincentLanglet
Copy link
Copy Markdown
Contributor

@VincentLanglet VincentLanglet commented Apr 16, 2026

@ondrejmirtes
Copy link
Copy Markdown
Member

Should also be pointed out by phpstan-phpunit. I think we already have a rule about using a version without a comparison.

@VincentLanglet VincentLanglet marked this pull request as ready for review April 16, 2026 15:17
@VincentLanglet VincentLanglet requested a review from staabm April 16, 2026 15:17
@phpstan-bot
Copy link
Copy Markdown
Collaborator

This pull request has been marked as ready for review.

@staabm
Copy link
Copy Markdown
Contributor

staabm commented Apr 16, 2026

I remember we discussed adding it to phpstan-phpunit but it seems we did not fill an issue about it

@staabm
Copy link
Copy Markdown
Contributor

staabm commented Apr 16, 2026

I remember we discussed adding it to phpstan-phpunit but it seems we did not fill an issue about it

just found phpstan/phpstan-phpunit#269 - so work was started but not finished

@staabm
Copy link
Copy Markdown
Contributor

staabm commented Apr 16, 2026

Do we need similar fixes in // lint comments?

@VincentLanglet
Copy link
Copy Markdown
Contributor Author

Do we need similar fixes in // lint comments?

I'mnot sure, there is no warning about it in the phpunit run.

@VincentLanglet VincentLanglet merged commit 2113422 into phpstan:2.1.x Apr 16, 2026
383 checks passed
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.

4 participants