Skip to content

Commit bd4fada

Browse files
committed
Merge remote-tracking branch 'origin/1.5.x' into 1.6.x
2 parents c7b4d28 + 2e193a0 commit bd4fada

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/Rules/Functions/ArrayFilterStrictRule.php

+1-6
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,7 @@ public function processNode(Node $node, Scope $scope): array
8383
}
8484

8585
if (count($args) === 1) {
86-
if ($this->treatPhpDocTypesAsCertain) {
87-
$arrayType = $scope->getType($args[0]->value);
88-
} else {
89-
$arrayType = $scope->getNativeType($args[0]->value);
90-
}
91-
86+
$arrayType = $scope->getType($args[0]->value);
9287
$itemType = $arrayType->getIterableValueType();
9388
if ($itemType instanceof UnionType) {
9489
$hasTruthy = false;

0 commit comments

Comments
 (0)