Skip to content

Commit 1f0818f

Browse files
authored
Merge pull request #1776 from deguif/remove-import-on-php-class
Remove import on native php class
2 parents c6d684d + bac2771 commit 1f0818f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Paginator/RawPaginatorAdapter.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
use Elastica\Query;
1515
use Elastica\ResultSet;
1616
use Elastica\SearchableInterface;
17-
use InvalidArgumentException;
1817

1918
/**
2019
* Allows pagination of Elastica\Query. Does not map results.
@@ -166,7 +165,7 @@ protected function getElasticaResults($offset, $itemCountPerPage)
166165
}
167166

168167
if ($itemCountPerPage < 1) {
169-
throw new InvalidArgumentException('$itemCountPerPage must be greater than zero');
168+
throw new \InvalidArgumentException('$itemCountPerPage must be greater than zero');
170169
}
171170

172171
$query = clone $this->query;

0 commit comments

Comments
 (0)