mirror of
https://github.com/danog/psalm.git
synced 2024-11-30 04:39:00 +01:00
Fixes
This commit is contained in:
parent
076bd85e00
commit
989d17147a
@ -860,8 +860,11 @@ final class Codebase
|
||||
/**
|
||||
* @param list<Arg> $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,
|
||||
|
@ -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
|
||||
) {
|
||||
|
Loading…
Reference in New Issue
Block a user