File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ final class GeocodeQuery implements Query
24
24
/**
25
25
* The address or text that should be geocoded.
26
26
*
27
- * @var string|null
27
+ * @var string
28
28
*/
29
29
private $ text ;
30
30
@@ -48,7 +48,7 @@ final class GeocodeQuery implements Query
48
48
*/
49
49
private $ data = [];
50
50
51
- private function __construct (? string $ text )
51
+ private function __construct (string $ text )
52
52
{
53
53
if ('' === $ text ) {
54
54
throw new InvalidArgument ('Geocode query cannot be empty ' );
@@ -57,7 +57,7 @@ private function __construct(?string $text)
57
57
$ this ->text = $ text ;
58
58
}
59
59
60
- public static function create (? string $ text ): self
60
+ public static function create (string $ text ): self
61
61
{
62
62
return new self ($ text );
63
63
}
@@ -102,7 +102,7 @@ public function withData(string $name, mixed $value): self
102
102
return $ new ;
103
103
}
104
104
105
- public function getText (): ? string
105
+ public function getText (): string
106
106
{
107
107
return $ this ->text ;
108
108
}
You can’t perform that action at this time.
0 commit comments