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.
2 parents 9847788 + d6465f8 commit 5e872f1Copy full SHA for 5e872f1
src/Parameters/TypeReflection.php
@@ -27,7 +27,7 @@ final class TypeReflection
27
* @param string|null $class Class name this parameter type is used in.
28
* Necessary for relative `self` and `parent` type hints.
29
*/
30
- public function __construct(string $type, string $class = null)
+ public function __construct(string $type, ?string $class = null)
31
{
32
if ($type === 'self' && empty($class)) {
33
throw new InvalidArgumentException('Type `self` can only be used inside classes.');
0 commit comments