diff --git a/config/sets/doctrine-collection-22.php b/config/sets/doctrine-collection-22.php index babb732d..d8da66b8 100644 --- a/config/sets/doctrine-collection-22.php +++ b/config/sets/doctrine-collection-22.php @@ -12,13 +12,13 @@ 'Doctrine\\Common\\Collections\\Criteria', 'ASC', 'Doctrine\\Common\\Collections\\Order', - 'ASC' + 'Ascending' ), new RenameClassAndConstFetch( 'Doctrine\\Common\\Collections\\Criteria', 'DESC', 'Doctrine\\Common\\Collections\\Order', - 'DESC' + 'Descending' ), ]); }; diff --git a/tests/Set/DoctrineCOLLECTION22Set/Fixture/criteria_to_order.php.inc b/tests/Set/DoctrineCOLLECTION22Set/Fixture/criteria_to_order.php.inc index bf1c487c..23a9a22d 100644 --- a/tests/Set/DoctrineCOLLECTION22Set/Fixture/criteria_to_order.php.inc +++ b/tests/Set/DoctrineCOLLECTION22Set/Fixture/criteria_to_order.php.inc @@ -11,4 +11,4 @@ $criteria->orderBy(['asc' => Criteria::ASC, 'desc' => Criteria::DESC]); use Doctrine\Common\Collections\Criteria; $criteria = new Criteria(); -$criteria->orderBy(['asc' => \Doctrine\Common\Collections\Order::ASC, 'desc' => \Doctrine\Common\Collections\Order::DESC]); +$criteria->orderBy(['asc' => \Doctrine\Common\Collections\Order::Ascending, 'desc' => \Doctrine\Common\Collections\Order::Descending]);