We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5881b30 + a0ba16c commit 6f9a6aaCopy full SHA for 6f9a6aa
src/Model/City.php
@@ -72,7 +72,7 @@ public function __construct(array $raw, array $locales = ['en'])
72
$this->location = new Location($raw['location'] ?? []);
73
$this->postal = new Postal($raw['postal'] ?? []);
74
75
- if (!isset($raw['subdivisions'])) {
+ if (empty($raw['subdivisions'])) {
76
$this->subdivisions = [];
77
$this->mostSpecificSubdivision
78
= new Subdivision([], $locales);
0 commit comments