Skip to content

Commit fa1b5ce

Browse files
committed
Revert "Updated geocode query to allow support for qualified queries"
This reverts commit 72a671d.
1 parent ad0a926 commit fa1b5ce

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Common/Query/GeocodeQuery.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ final class GeocodeQuery implements Query
2424
/**
2525
* The address or text that should be geocoded.
2626
*
27-
* @var string|null
27+
* @var string
2828
*/
2929
private $text;
3030

@@ -48,7 +48,7 @@ final class GeocodeQuery implements Query
4848
*/
4949
private $data = [];
5050

51-
private function __construct(?string $text)
51+
private function __construct(string $text)
5252
{
5353
if ('' === $text) {
5454
throw new InvalidArgument('Geocode query cannot be empty');
@@ -57,7 +57,7 @@ private function __construct(?string $text)
5757
$this->text = $text;
5858
}
5959

60-
public static function create(?string $text): self
60+
public static function create(string $text): self
6161
{
6262
return new self($text);
6363
}
@@ -102,7 +102,7 @@ public function withData(string $name, mixed $value): self
102102
return $new;
103103
}
104104

105-
public function getText(): ?string
105+
public function getText(): string
106106
{
107107
return $this->text;
108108
}

0 commit comments

Comments
 (0)