Feature Description
The use of empty() and isset( $var ) 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() and empty().)
Feature Description
The use of
empty()andisset( $var )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().)