Skip to content

Commit 1d898b4

Browse files
committed
bugfix
1 parent 27e4cb3 commit 1d898b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Geocoder/Provider/Geonames.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
use Geocoder\Exception\InvalidCredentials;
1414
use Geocoder\Exception\NoResult;
1515
use Geocoder\Exception\UnsupportedOperation;
16-
use Geocoder\Model\AdminLevelCollectionInterface;
16+
use Geocoder\Model\AdminLevelCollection;
1717
use Http\Client\HttpClient;
1818

1919
/**
@@ -138,7 +138,7 @@ private function executeQuery($query)
138138

139139
$adminLevels = [];
140140

141-
for ($level = 1; $level <= AdminLevelCollectionInterface::MAX_LEVEL_DEPTH; ++ $level) {
141+
for ($level = 1; $level <= AdminLevelCollection::MAX_LEVEL_DEPTH; ++ $level) {
142142
$adminNameProp = 'adminName' . $level;
143143
$adminCodeProp = 'adminCode' . $level;
144144
if (! empty($item->$adminNameProp) || ! empty($item->$adminCodeProp)) {

0 commit comments

Comments
 (0)