diff --git a/src/Rules/Functions/ArrayFilterStrictRule.php b/src/Rules/Functions/ArrayFilterStrictRule.php index 3f562b4..e8574da 100644 --- a/src/Rules/Functions/ArrayFilterStrictRule.php +++ b/src/Rules/Functions/ArrayFilterStrictRule.php @@ -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;