diff --git a/src/Psalm/Codebase.php b/src/Psalm/Codebase.php index a2a4f5405..ca852b764 100644 --- a/src/Psalm/Codebase.php +++ b/src/Psalm/Codebase.php @@ -860,8 +860,11 @@ final class Codebase /** * @param list $call_args */ - public function getMethodReturnType(string|MethodIdentifier $method_id, ?string &$self_class, array $call_args = []): ?Union - { + public function getMethodReturnType( + string|MethodIdentifier $method_id, + ?string &$self_class, + array $call_args = [], + ): ?Union { return $this->methods->getMethodReturnType( MethodIdentifier::wrap($method_id), $self_class, diff --git a/src/Psalm/Internal/PhpVisitor/Reflector/FunctionLikeNodeScanner.php b/src/Psalm/Internal/PhpVisitor/Reflector/FunctionLikeNodeScanner.php index 24aabab4c..b2bc3a4f6 100644 --- a/src/Psalm/Internal/PhpVisitor/Reflector/FunctionLikeNodeScanner.php +++ b/src/Psalm/Internal/PhpVisitor/Reflector/FunctionLikeNodeScanner.php @@ -123,8 +123,10 @@ final class FunctionLikeNodeScanner /** * @param bool $fake_method in the case of @method annotations we do something a little strange */ - public function start(PhpParser\Node\FunctionLike $stmt, bool $fake_method = false): FunctionStorage|MethodStorage|false - { + public function start( + PhpParser\Node\FunctionLike $stmt, + bool $fake_method = false, + ): FunctionStorage|MethodStorage|false { if ($stmt instanceof PhpParser\Node\Expr\Closure || $stmt instanceof PhpParser\Node\Expr\ArrowFunction ) {