Switch should have default thing.

This commit is contained in:
James Cole
2020-10-03 17:53:23 +02:00
parent b8e36b0398
commit 61ffc8ada6
7 changed files with 16 additions and 4 deletions

View File

@@ -73,6 +73,7 @@ class AccountSearch implements GenericSearchInterface
$like = sprintf('%%%s%%', $this->query);
$originalQuery = $this->query;
switch ($this->field) {
default:
case self::SEARCH_ALL:
$query->where(
static function (Builder $q) use ($like) {