Skip to content

Commit 0a4e003

Browse files
committed
📦 Avoid PHP 8.4 deprecations about implicit nullable
1 parent 490c7a4 commit 0a4e003

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/Fixtures/Entities/Contact.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ public function getName(): string
3030
#[Field]
3131
public function injectService(
3232
#[Autowire]
33-
TestGraphqlController $testService = null,
33+
?TestGraphqlController $testService = null,
3434
#[Autowire(identifier: 'someService')]
35-
stdClass $someService = null,
35+
?stdClass $someService = null,
3636
#[Autowire(identifier: 'someAlias')]
37-
stdClass $someAlias = null,
37+
?stdClass $someAlias = null,
3838
): string {
3939
if (!$testService instanceof TestGraphqlController || $someService === null || $someAlias === null) {
4040
return 'KO';
@@ -52,7 +52,7 @@ public function injectServicePrefetch($prefetchData): string
5252
public function prefetchData(
5353
iterable $iterable,
5454
#[Autowire(identifier: 'someOtherService')]
55-
stdClass $someOtherService = null,
55+
?stdClass $someOtherService = null,
5656
) {
5757
if ($someOtherService === null) {
5858
return 'KO';

0 commit comments

Comments
 (0)