Skip to content

Commit 36a8eee

Browse files
authored
fix: compatibility with PHP 8.2 (#5024)
* fix: compatibility with PHP 8.2 * fix cs
1 parent ade5c83 commit 36a8eee

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CallableProvider.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function __construct(private readonly ContainerInterface $locator)
2626
/**
2727
* {@inheritDoc}
2828
*/
29-
public function provide(Operation $operation, array $uriVariables = [], array $context = []): object|iterable|null
29+
public function provide(Operation $operation, array $uriVariables = [], array $context = []): object|array|null
3030
{
3131
if (\is_callable($provider = $operation->getProvider())) {
3232
return $provider($operation, $uriVariables, $context);

ProviderInterface.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ interface ProviderInterface
2727
/**
2828
* Provides data.
2929
*/
30-
public function provide(Operation $operation, array $uriVariables = [], array $context = []): object|iterable|null;
30+
public function provide(Operation $operation, array $uriVariables = [], array $context = []): object|array|null;
3131
}

0 commit comments

Comments
 (0)