mirror of
https://github.com/shlinkio/shlink.git
synced 2026-10-16 22:01:58 -05:00
Fix static analysis after update to doctrine/orm 3.7
This commit is contained in:
1 parent
182a430b9e
commit
cef79844f8
1 file changed
+2
-1
@@ -8,6 +8,7 @@ use Cake\Chronos\Chronos;
|
||||
use Doctrine\Common\Collections\ArrayCollection;
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
use Doctrine\Common\Collections\Criteria;
|
||||
use Doctrine\Common\Collections\Order;
|
||||
use Doctrine\Common\Collections\Selectable;
|
||||
use Shlinkio\Shlink\Common\Entity\AbstractEntity;
|
||||
use Shlinkio\Shlink\Core\Domain\Entity\Domain;
|
||||
@@ -186,7 +187,7 @@ class ShortUrl extends AbstractEntity
|
||||
{
|
||||
$criteria = Criteria::create()
|
||||
->where(Criteria::expr()->eq('type', VisitType::IMPORTED))
|
||||
->orderBy(['id' => 'DESC'])
|
||||
->orderBy(['id' => Order::Descending])
|
||||
->setMaxResults(1);
|
||||
$visit = $this->visits->matching($criteria)->last();
|
||||
|
||||
|
||||
Reference in new issue
Block a user