mirror of
https://github.com/danog/psalm-plugin.git
synced 2024-11-30 04:39:05 +01:00
Revert "fix: don't close argument type. (#7)"
This reverts commit 1c425b71c6
.
This commit is contained in:
parent
1c425b71c6
commit
2aa6c21bba
@ -28,6 +28,9 @@ final class FunctionReturnTypeProvider implements FunctionReturnTypeProviderInte
|
||||
return null;
|
||||
}
|
||||
|
||||
return $argument_type->setPossiblyUndefined(true);
|
||||
$clone = clone $argument_type;
|
||||
$clone->possibly_undefined = true;
|
||||
|
||||
return $clone;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user