Skip to content

Commit 4d571d6

Browse files
committed
Update MutatingScope.php
1 parent 2804327 commit 4d571d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Analyser/MutatingScope.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2525,12 +2525,12 @@ private function getDynamicFunctionReturnType(FuncCall $normalizedNode, Function
25252525

25262526
$supportedFunctions[] = $dynamicFunctionReturnTypeExtension;
25272527
if ($resolvedType !== null) {
2528-
self::$functionReturnTypeExtensions[$functionName] = $supportedFunctions;
2528+
self::$functionReturnTypeExtensions[$functionName] ??= $supportedFunctions;
25292529
return $resolvedType;
25302530
}
25312531
}
25322532

2533-
self::$functionReturnTypeExtensions[$functionName] = $supportedFunctions;
2533+
self::$functionReturnTypeExtensions[$functionName] ??= $supportedFunctions;
25342534
return null;
25352535
}
25362536

0 commit comments

Comments
 (0)