Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
smoench committed Oct 4, 2022
1 parent 8b02aef commit b78e91e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SearchEndpoint/AbstractSearchEndpoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit b78e91e

Please sign in to comment.