Skip to content

Commit dfa2ff3

Browse files
committed
[ci-review] Rector Rectify
1 parent 3194bde commit dfa2ff3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎utils/phpstan/src/Rule/NarrowReturnToUnionParamRule.php‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ private function isNullableReturnType(null|Identifier|Name|ComplexType $type): b
112112
if (! $type instanceof UnionType) {
113113
return false;
114114
}
115+
115116
return array_any($type->types, fn(Identifier|Name|IntersectionType $memberType): bool => $memberType instanceof Identifier && $memberType->toLowerString() === 'null');
116117
}
117118

0 commit comments

Comments
 (0)