Skip to content

Commit

Permalink
Fix implicit nullable type
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorprogger committed Feb 9, 2025
1 parent 6d291c6 commit d4bc155
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ public function handleFailure(FailureHandlingRequest $request): FailureHandlingR
}

private function createDispatcher(
ContainerInterface $container = null,
?ContainerInterface $container = null,
): FailureMiddlewareDispatcher {
$container ??= $this->createContainer([AdapterInterface::class => new FakeAdapter()]);
$callableFactory = new CallableFactory($container);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public function testInvalidMiddlewareWithWrongController(): void
);
}

private function getMiddlewareFactory(ContainerInterface $container = null): MiddlewareFactoryFailureInterface
private function getMiddlewareFactory(?ContainerInterface $container = null): MiddlewareFactoryFailureInterface
{
$container ??= $this->getContainer([AdapterInterface::class => new FakeAdapter()]);

Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Middleware/Push/MiddlewareDispatcherTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public function handlePush(PushRequest $request): PushRequest
}

private function createDispatcher(
ContainerInterface $container = null,
?ContainerInterface $container = null,
): PushMiddlewareDispatcher {
$container ??= $this->createContainer([AdapterInterface::class => new FakeAdapter()]);
$callableFactory = new CallableFactory($container);
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Middleware/Push/MiddlewareFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public function testInvalidMiddlewareWithWrongController(): void
);
}

private function getMiddlewareFactory(ContainerInterface $container = null): MiddlewareFactoryPushInterface
private function getMiddlewareFactory(?ContainerInterface $container = null): MiddlewareFactoryPushInterface
{
$container ??= $this->getContainer([AdapterInterface::class => new FakeAdapter()]);

Expand Down

0 comments on commit d4bc155

Please sign in to comment.