diff --git a/src/SearchEndpoint/AbstractSearchEndpoint.php b/src/SearchEndpoint/AbstractSearchEndpoint.php index 02b23401..17a890f1 100644 --- a/src/SearchEndpoint/AbstractSearchEndpoint.php +++ b/src/SearchEndpoint/AbstractSearchEndpoint.php @@ -32,7 +32,7 @@ abstract class AbstractSearchEndpoint extends AbstractNormalizable implements Se */ private array $container = []; - public function add(BuilderInterface $builder, $key = null): string + public function add(BuilderInterface $builder, ?string $key = null): string { if (array_key_exists($key, $this->container)) { throw new OverflowException(sprintf('Builder with %s name for endpoint has already been added!', $key));