We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 694413a commit bf49055Copy full SHA for bf49055
src/Internal/CriteriaOrderings.php
@@ -8,7 +8,7 @@
8
use Doctrine\Common\Collections\Order;
9
10
use function array_map;
11
-use function class_exists;
+use function enum_exists;
12
use function method_exists;
13
use function strtoupper;
14
@@ -38,7 +38,7 @@ private static function getCriteriaOrderings(Criteria $criteria): array
38
*/
39
private static function mapToOrderEnumIfAvailable(array $orderings): array
40
{
41
- if (! class_exists(Order::class)) {
+ if (! enum_exists(Order::class)) {
42
return $orderings;
43
}
44
0 commit comments