Use stable andExpr() / orExpr() methods

Change-Id: I0010a7c9d273e63acbed78190f0c23283a192ef2
This commit is contained in:
Bartosz Dziewoński 2024-07-11 18:36:04 +02:00
parent e256fca1ad
commit 3df92fcbe4

View file

@ -18,7 +18,6 @@ use UnexpectedValueException;
use Wikimedia\Assert\Assert;
use Wikimedia\Rdbms\IExpression;
use Wikimedia\Rdbms\IReadableDatabase;
use Wikimedia\Rdbms\OrExpressionGroup;
use Wikimedia\Rdbms\Platform\ISQLPlatform;
abstract class AbuseFilterView extends ContextSource {
@ -153,7 +152,7 @@ abstract class AbuseFilterView extends ContextSource {
return $db->expr( 'rc_source', '=', $editSources )
->orExpr(
$db->expr( 'rc_source', '=', RecentChange::SRC_LOG )
->andExpr( new OrExpressionGroup( ...$conds ) )
->andExpr( $db->orExpr( $conds ) )
);
}