We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 995626b commit 1fa5246Copy full SHA for 1fa5246
src/Provider/Photon/Model/PhotonAddress.php
@@ -62,7 +62,7 @@ final class PhotonAddress extends Address
62
public function getLocality(): ?string
63
{
64
$locality = parent::getLocality();
65
- if ($locality === null && $this->type === 'city' && $this->name !== null) {
+ if (null === $locality && 'city' === $this->type && null !== $this->name) {
66
$locality = $this->name;
67
}
68
0 commit comments