Skip to content

Commit f927dc7

Browse files
authored
Revert "[8.x] Fix formatWheres in DatabaseRule (#36441)" (#36452)
This reverts commit e3f48f7.
1 parent ab7e1c1 commit f927dc7

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)