From d6465f812837dab667707566a7f8a130bf00c04d Mon Sep 17 00:00:00 2001 From: "Garrett W." Date: Sat, 30 Aug 2025 18:18:10 -0500 Subject: [PATCH] fix: implicitly nullable type in TypeReflection::__construct() --- src/Parameters/TypeReflection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Parameters/TypeReflection.php b/src/Parameters/TypeReflection.php index d436104..5585751 100644 --- a/src/Parameters/TypeReflection.php +++ b/src/Parameters/TypeReflection.php @@ -27,7 +27,7 @@ final class TypeReflection * @param string|null $class Class name this parameter type is used in. * Necessary for relative `self` and `parent` type hints. */ - public function __construct(string $type, string $class = null) + public function __construct(string $type, ?string $class = null) { if ($type === 'self' && empty($class)) { throw new InvalidArgumentException('Type `self` can only be used inside classes.');