phpinspectionsea icon indicating copy to clipboard operation
phpinspectionsea copied to clipboard

'empty(...)' usage quick-fix error

Open voku opened this issue 3 years ago • 0 comments

Subject Details
Plugin Php Inspections (EA Extended), 4.0.7.1
Language level PHP 7.4

Current behaviour

 if (empty($result_ids) === true) {
    return [];
}

if (count($result_ids) === 0 === true) {
    return [];
}

Expected behaviour

if (count($result_ids) === 0) {
    return [];
}

voku avatar Feb 07 '22 22:02 voku