Skip to content

Commit eea74d2

Browse files
committed
resolve late resolvable types from parameter closure type extension
1 parent b6fcf5e commit eea74d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Rules/FunctionCallParametersCheck.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,13 +317,13 @@ public function check(
317317
}
318318

319319
if ($this->checkArgumentTypes) {
320-
$parameterType = TypeUtils::resolveLateResolvableTypes($parameter->getType());
321320
$parameterType = $this->parameterClosureTypeHelper->getParameterTypeFromParameterClosureTypeExtension(
322321
$funcCall,
323322
$callReflection,
324323
$parameter,
325324
$scope,
326-
) ?? $parameterType;
325+
) ?? $parameter->getType();
326+
$parameterType = TypeUtils::resolveLateResolvableTypes($parameterType);
327327

328328
if (
329329
!$parameter->passedByReference()->createsNewVariable()

0 commit comments

Comments
 (0)