diff --git a/rules/CodeQuality/Rector/Empty_/SimplifyEmptyCheckOnEmptyArrayRector.php b/rules/CodeQuality/Rector/Empty_/SimplifyEmptyCheckOnEmptyArrayRector.php index efb58b3dfd7..0bed5b73a6c 100644 --- a/rules/CodeQuality/Rector/Empty_/SimplifyEmptyCheckOnEmptyArrayRector.php +++ b/rules/CodeQuality/Rector/Empty_/SimplifyEmptyCheckOnEmptyArrayRector.php @@ -50,14 +50,14 @@ public function getRuleDefinition(): RuleDefinition 'Simplify empty() functions calls on empty arrays', [new CodeSample( <<<'CODE_SAMPLE' -$array = []; +$values = []; if (empty($values)) { } CODE_SAMPLE , <<<'CODE_SAMPLE' -$array = []; +$values = []; if ([] === $values) { }