Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/1.5.x' into 1.6.x
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Apr 19, 2024
2 parents c7b4d28 + 2e193a0 commit bd4fada
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/Rules/Functions/ArrayFilterStrictRule.php
Expand Up @@ -83,12 +83,7 @@ public function processNode(Node $node, Scope $scope): array
}

if (count($args) === 1) {
if ($this->treatPhpDocTypesAsCertain) {
$arrayType = $scope->getType($args[0]->value);
} else {
$arrayType = $scope->getNativeType($args[0]->value);
}

$arrayType = $scope->getType($args[0]->value);
$itemType = $arrayType->getIterableValueType();
if ($itemType instanceof UnionType) {
$hasTruthy = false;
Expand Down

0 comments on commit bd4fada

Please sign in to comment.