Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
xificurk committed Oct 8, 2023
1 parent 9530d96 commit 1574e98
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/AutocompleteInput/AutocompleteInput.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class AutocompleteInput extends TextInput implements SignalReceiver

private const AUTOCOMPLETE_SIGNAL = 'autocomplete';
private const QUERY_PLACEHOLDER = '__QUERY_PLACEHOLDER__';
private const QUERY_PARAMATER = 'query';
private const QUERY_PARAMETER = 'query';

/**
* @var callable
Expand All @@ -32,7 +32,7 @@ function (Presenter $presenter): void {
$uidPrefix = $this->getUniqueId() . self::NAME_SEPARATOR;
$arguments = [
Presenter::SIGNAL_KEY => $uidPrefix . self::AUTOCOMPLETE_SIGNAL,
$uidPrefix . self::QUERY_PARAMATER => self::QUERY_PLACEHOLDER,
$uidPrefix . self::QUERY_PARAMETER => self::QUERY_PLACEHOLDER,
];
$autocompleteUrl = $presenter->link('this', $arguments);
$this->setHtmlAttribute('data-autocomplete-url', $autocompleteUrl);
Expand All @@ -57,7 +57,7 @@ public function signalReceived(string $signal): void

$presenter = $this->getPresenter();

$query = $presenter->popGlobalParameters($this->getUniqueId())[self::QUERY_PARAMATER] ?? null;
$query = $presenter->popGlobalParameters($this->getUniqueId())[self::QUERY_PARAMETER] ?? null;
if ($query === null) {
$class = static::class;
throw new BadSignalException("Missing query parameter for '$signal' in $class.");
Expand Down

0 comments on commit 1574e98

Please sign in to comment.