File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ public static function getSubscribedServices(): array
53
53
$ attribute = $ attribute ->newInstance ();
54
54
$ attribute ->key ??= self ::class.':: ' .$ method ->name ;
55
55
$ attribute ->type ??= $ returnType instanceof \ReflectionNamedType ? $ returnType ->getName () : (string ) $ returnType ;
56
- $ attribute ->nullable = $ returnType ->allowsNull ();
56
+ $ attribute ->nullable = $ attribute -> nullable ?: $ returnType ->allowsNull ();
57
57
58
58
if ($ attribute ->attributes ) {
59
59
$ services [] = $ attribute ;
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ public static function getSubscribedServices(): array
57
57
$ attribute = $ attribute ->newInstance ();
58
58
$ attribute ->key ??= self ::class.':: ' .$ method ->name ;
59
59
$ attribute ->type ??= $ returnType instanceof \ReflectionNamedType ? $ returnType ->getName () : (string ) $ returnType ;
60
- $ attribute ->nullable = $ returnType ->allowsNull ();
60
+ $ attribute ->nullable = $ attribute -> nullable ?: $ returnType ->allowsNull ();
61
61
62
62
if ($ attribute ->attributes ) {
63
63
$ services [] = $ attribute ;
You can’t perform that action at this time.
0 commit comments