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
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 }
You can’t perform that action at this time.
0 commit comments