We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6362ade commit 14943f7Copy full SHA for 14943f7
1 file changed
src/functions.php
@@ -349,6 +349,7 @@ function toUnionParameter(string ...$types): UnionParameterInterface
349
350
function toParameter(string $type): ParameterInterface
351
{
352
+ $type = str_replace('?', 'null|', $type);
353
if (str_contains($type, '|')) {
354
return toUnionParameter(...explode('|', $type));
355
}
0 commit comments