Skip to content

Commit e542a61

Browse files
committed
Fix
1 parent 28e2f26 commit e542a61

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: src/Type/Php/ReflectionGetAttributesMethodReturnTypeExtension.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
use PHPStan\Type\Generic\GenericObjectType;
1212
use PHPStan\Type\IntegerType;
1313
use PHPStan\Type\Type;
14+
use PHPStan\Type\TypeCombinator;
1415
use ReflectionAttribute;
1516
use function count;
1617

@@ -43,7 +44,7 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method
4344
$argType = $scope->getType($methodCall->getArgs()[0]->value);
4445
$classType = $argType->getClassStringObjectType();
4546

46-
return AccessoryArrayListType::intersectWith(new ArrayType(new IntegerType(), new GenericObjectType(ReflectionAttribute::class, [$classType])));
47+
return TypeCombinator::intersect(new ArrayType(new IntegerType(), new GenericObjectType(ReflectionAttribute::class, [$classType])), new AccessoryArrayListType());
4748
}
4849

4950
}

0 commit comments

Comments
 (0)