We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81511ba commit e4767e5Copy full SHA for e4767e5
Resource/ReflectionClassResource.php
@@ -197,7 +197,7 @@ private function generateSignature(\ReflectionClass $class)
197
} else {
198
$t = \PHP_VERSION_ID >= 70000 ? $p->getType() : '';
199
$stack[] = $p->isOptional();
200
- $stack[] = $t instanceof \ReflectionNamedType ? $t->getName() : (string) $t;
+ $stack[] = $t instanceof \ReflectionNamedType ? ((string) $t->allowsNull()).$t->getName() : (string) $t;
201
$stack[] = $p->isPassedByReference();
202
$stack[] = \PHP_VERSION_ID >= 50600 ? $p->isVariadic() : '';
203
$stack[] = $p->getName();
0 commit comments