Skip to content

Commit 2cb2135

Browse files
committed
fix CS
1 parent 7946539 commit 2cb2135

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ReturnTypes/CollectionGenericStaticMethodDynamicMethodReturnTypeExtension.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ public function getTypeFromMethodCall(
107107

108108
// If it's a UnionType, traverse the types and try to find a collection object type
109109
if ($returnType instanceof UnionType) {
110-
// @phpcs:ignore
111110
return $returnType->traverse(function (Type $type) use ($classReflection) {
111+
// @phpcs:ignore
112112
if ($type instanceof GenericObjectType && ($innerReflection = $type->getClassReflection()) !== null) { // @phpstan-ignore-line
113113
return $this->handleGenericObjectType($classReflection, $innerReflection);
114114
}

0 commit comments

Comments
 (0)