Upstream doctrine/collections state of the touched files before 990f3f475a
This commit is contained in:
1 parent
2572a60593
commit
f0274aca89
2 files changed
+2
-50
No files matched your search
@@ -170,13 +170,11 @@ class ClosureExpressionVisitor extends ExpressionVisitor
|
||||
$aValue = ClosureExpressionVisitor::getObjectFieldValue($a, $name, $accessRawFieldValues);
|
||||
$bValue = ClosureExpressionVisitor::getObjectFieldValue($b, $name, $accessRawFieldValues);
|
||||
|
||||
$comparison = $aValue <=> $bValue;
|
||||
|
||||
if ($comparison === 0) {
|
||||
if ($aValue === $bValue) {
|
||||
return $next($a, $b);
|
||||
}
|
||||
|
||||
return $comparison * $orientation;
|
||||
return ($aValue > $bValue ? 1 : -1) * $orientation;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user