Enable UnusedUse sniff again#9267
Merged
derrabus merged 1 commit intodoctrine:2.11.xfrom Dec 25, 2021
Merged
Conversation
greg0ire
reviewed
Dec 18, 2021
Member
|
Couldn't we ignore tests/ for this sniff only if it causes these problems with annotations? |
fbd1cef to
252c218
Compare
Member
Author
We could, but why should we? Our test suite does not need to cover all edge cases of the |
252c218 to
9b6c1d4
Compare
9b6c1d4 to
305bdb4
Compare
305bdb4 to
672393d
Compare
greg0ire
approved these changes
Dec 25, 2021
derrabus
added a commit
to derrabus/orm
that referenced
this pull request
Dec 26, 2021
* 2.11.x: Enable UnusedUse sniff again (doctrine#9267) Whitelist composer plugins used by this repository (doctrine#9286) Fix XML export for `change-tracking-policy` (doctrine#9285) Allow symfony/cache 6 (doctrine#9283) Put actual value instead of index inside $originalEntityData. (doctrine#9244) Fix return types of cache interfaces (doctrine#9271) Better explain limitations of DQL "DELETE" (doctrine#9281) Fix docblocks on nullable EM properties (doctrine#9273) Docs: use canonical order for phpdoc tags, add missed semicolon (doctrine#9190) Make PrimaryReadReplicaConnection enforcement explicit (doctrine#9239) Regenerate Psalm baseline (doctrine#9272) Improve compatibility with Doctrine DBAL 4 (doctrine#9266) [docs] Fix wording for attributes=>parameters. (doctrine#9265) Support for nesting attributes with PHP 8.1 (doctrine#9241) Revert "Fix SchemaValidator with abstract child class in discriminator map (doctrine#9096)" (doctrine#9262) Docs: consistency for FQCN, spacing, etc (doctrine#9232)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Keeping the UnusedUse sniff deactivated entirely does more harm than good, I figured. The sniff is still not perfect when it comes to annotations, but if we keep annotations multiline, it works. I think, we can live with that.