Skip to content

AssertEmptyIsDiscouragedRule: use unique error identifier - #340

Merged
staabm merged 4 commits into
phpstan:2.0.xfrom
staabm:ident
Oct 1, 2026
Merged

staabm merged 4 commits into
phpstan:2.0.xfrom
staabm:ident

Conversation

@staabm

@staabm staabm commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

use a identifier which allows people to ignore these errors easily.

consistent with AssertEqualsIsDiscouragedRule

see #339 (comment)

@ondrejmirtes

Copy link
Copy Markdown
Member

Should be phpunit.assertEmpty

@ondrejmirtes

Copy link
Copy Markdown
Member

You can squash-merge this and tag a new release.

@staabm
staabm merged commit 8dbdc3a into phpstan:2.0.x Oct 1, 2026
96 checks passed
@staabm
staabm deleted the ident branch October 1, 2026 11:59
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