mirror of
https://github.com/danog/psalm-plugin.git
synced 2024-11-29 20:29:02 +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;
|
||||
}
|
||||
|
||||
$clone = clone $argument_type;
|
||||
$clone->possibly_undefined = true;
|
||||
|
||||
return $clone;
|
||||
return $argument_type->setPossiblyUndefined(true);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user