mirror of
https://github.com/danog/psalm-plugin.git
synced 2024-12-02 09:37:50 +01:00
fix: don't close argument type. (#7)
ref https://github.com/vimeo/psalm/pull/8691#discussion_r1019192376
This commit is contained in:
parent
acec87621b
commit
1c425b71c6
@ -28,9 +28,6 @@ final class FunctionReturnTypeProvider implements FunctionReturnTypeProviderInte
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
$clone = clone $argument_type;
|
return $argument_type->setPossiblyUndefined(true);
|
||||||
$clone->possibly_undefined = true;
|
|
||||||
|
|
||||||
return $clone;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user