From 88d63ff6d6d1adc8eb1aaa5f1419adcc95388740 Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Tue, 4 Nov 2025 19:53:35 +0100 Subject: [PATCH] test current performance --- src/Type/Php/ArrayMapFunctionReturnTypeExtension.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Type/Php/ArrayMapFunctionReturnTypeExtension.php b/src/Type/Php/ArrayMapFunctionReturnTypeExtension.php index b58638dddf..f0ad5c8472 100644 --- a/src/Type/Php/ArrayMapFunctionReturnTypeExtension.php +++ b/src/Type/Php/ArrayMapFunctionReturnTypeExtension.php @@ -46,7 +46,8 @@ public function getTypeFromFunctionCall(FunctionReflection $functionReflection, $callback = $functionCall->getArgs()[0]->value; $callableType = $scope->getType($callback); $callableIsNull = $callableType->isNull()->yes(); - + $x = !$callableType->isNull()->no(); + if ($callableType->isCallable()->yes()) { $valueType = $scope->getType(new FuncCall( $callback,