From cd2d187b869a9a24369120f76f33e2f1857b13e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonathan=20Beli=C3=ABn?= Date: Sat, 2 Mar 2024 12:00:56 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8=20Apply=20PHP=20CS=20Fixer=20fixes?= =?UTF-8?q?=20(#1219)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Model/OpenCageAddress.php | 10 +++++----- OpenCage.php | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Model/OpenCageAddress.php b/Model/OpenCageAddress.php index 7c92900..8c275ed 100644 --- a/Model/OpenCageAddress.php +++ b/Model/OpenCageAddress.php @@ -49,7 +49,7 @@ final class OpenCageAddress extends Address */ private $formattedAddress; - public function withMGRS(string $mgrs = null): self + public function withMGRS(?string $mgrs = null): self { $new = clone $this; $new->mgrs = $mgrs; @@ -65,7 +65,7 @@ public function getMGRS() return $this->mgrs; } - public function withMaidenhead(string $maidenhead = null): self + public function withMaidenhead(?string $maidenhead = null): self { $new = clone $this; $new->maidenhead = $maidenhead; @@ -81,7 +81,7 @@ public function getMaidenhead() return $this->maidenhead; } - public function withGeohash(string $geohash = null): self + public function withGeohash(?string $geohash = null): self { $new = clone $this; $new->geohash = $geohash; @@ -97,7 +97,7 @@ public function getGeohash() return $this->geohash; } - public function withWhat3words(string $what3words = null): self + public function withWhat3words(?string $what3words = null): self { $new = clone $this; $new->what3words = $what3words; @@ -113,7 +113,7 @@ public function getWhat3words() return $this->what3words; } - public function withFormattedAddress(string $formattedAddress = null): self + public function withFormattedAddress(?string $formattedAddress = null): self { $new = clone $this; $new->formattedAddress = $formattedAddress; diff --git a/OpenCage.php b/OpenCage.php index cfa35fc..e91b1c2 100644 --- a/OpenCage.php +++ b/OpenCage.php @@ -99,7 +99,7 @@ public function getName(): string /** * @throws \Geocoder\Exception\Exception */ - private function executeQuery(string $url, string $locale = null): AddressCollection + private function executeQuery(string $url, ?string $locale = null): AddressCollection { if (null !== $locale) { $url = sprintf('%s&language=%s', $url, $locale);