Skip to content

Commit

Permalink
Don't apply where condition when it is an empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
guvra committed Mar 5, 2024
1 parent aee0cdd commit 61e7b33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Dumper/Config/Table/TableConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ private function prepareFilters(array $tableData): void
}

// New way of declaring table filters (`where` parameter)
if (isset($tableData['where'])) {
$whereCondition = (string) $tableData['where'];
$whereCondition = (string) ($tableData['where'] ?? '');
if ($whereCondition !== '') {
$this->whereExprValidator->validate($whereCondition);
$this->where = $whereCondition;
}
Expand Down

0 comments on commit 61e7b33

Please sign in to comment.