Add checks to disallow use of isset() and empty() #1219
Labels
Infrastructure
Issues for the overall performance plugin infrastructure
[Type] Enhancement
A suggestion for improvement of an existing feature
Milestone
Feature Description
The use of
empty()
andisset()
can mask code problems (e.g. typos). And they rarely need to be used, for example:cf. comment by @felixarntz in #1091 (comment)
We should consider adding sniffs to warn against their use. (Granted, PHPStan should catch the problematic uses of
isset()
andempty()
.)The text was updated successfully, but these errors were encountered: