Skip to content

Commit 26fe23f

Browse files
authored
Revert "Revert "Revert "[8.x] Fix formatWheres in DatabaseRule (#36441)" (#36452)" (#36453)" (#36465)
This reverts commit 0183148.
1 parent ddb0c5e commit 26fe23f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/Illuminate/Validation/Rules/DatabaseRule.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -196,11 +196,7 @@ public function queryCallbacks()
196196
protected function formatWheres()
197197
{
198198
return collect($this->wheres)->map(function ($where) {
199-
if (is_bool($where['value'])) {
200-
return $where['column'].','.($where['value'] ? 'true' : 'false');
201-
} else {
202-
return $where['column'].','.'"'.str_replace('"', '""', $where['value']).'"';
203-
}
199+
return $where['column'].','.'"'.str_replace('"', '""', $where['value']).'"';
204200
})->implode(',');
205201
}
206202
}

0 commit comments

Comments
 (0)