Skip to content

Commit 3b22166

Browse files
committed
Remove throw
1 parent 4262ff8 commit 3b22166

2 files changed

Lines changed: 0 additions & 6 deletions

File tree

src/Database/Adapter/MariaDB.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2111,9 +2111,6 @@ protected function getOperatorSQL(string $column, Operator $operator, array &$bi
21112111

21122112
case Operator::TYPE_ARRAY_FILTER:
21132113
$condition = $values[0] ?? 'equal';
2114-
if (!in_array($condition, Operator::ARRAY_FILTER_CONDITIONS, true)) {
2115-
throw new DatabaseException("Invalid filter condition: {$condition}. Must be one of: " . implode(', ', Operator::ARRAY_FILTER_CONDITIONS));
2116-
}
21172114
$filterValue = $values[1] ?? null;
21182115
$conditionKey = $this->registerOperatorBind($binds, $condition);
21192116
$valueKey = $this->registerOperatorBind($binds, $filterValue === null ? null : json_encode($filterValue));

src/Database/Adapter/Postgres.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2661,9 +2661,6 @@ protected function getOperatorSQL(string $column, Operator $operator, array &$bi
26612661

26622662
case Operator::TYPE_ARRAY_FILTER:
26632663
$condition = $values[0] ?? 'equal';
2664-
if (!in_array($condition, Operator::ARRAY_FILTER_CONDITIONS, true)) {
2665-
throw new DatabaseException("Invalid filter condition: {$condition}. Must be one of: " . implode(', ', Operator::ARRAY_FILTER_CONDITIONS));
2666-
}
26672664
$filterValue = $values[1] ?? null;
26682665
$conditionKey = $this->registerOperatorBind($binds, $condition);
26692666
$valueKey = $this->registerOperatorBind($binds, $filterValue === null ? null : json_encode($filterValue));

0 commit comments

Comments
 (0)