Skip to content
This repository has been archived by the owner on Jul 22, 2022. It is now read-only.

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jordisala1991 committed Jan 7, 2018
1 parent ffc5284 commit 40f0640
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Filter/ChoiceFilter.php
Expand Up @@ -32,7 +32,7 @@ public function filter(ProxyQueryInterface $proxyQuery, $alias, $field, $data):

// clean values
foreach ($values as $key => $value) {
$value = trim($value);
$value = trim((string) $value);
if (!$value) {
unset($values[$key]);
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/Filter/StringFilter.php
Expand Up @@ -27,7 +27,7 @@ public function filter(ProxyQueryInterface $proxyQuery, $alias, $field, $data):
return;
}

$value = trim($data['value']);
$value = trim((string) $data['value']);
$data['type'] = empty($data['type']) ? ChoiceType::TYPE_CONTAINS : $data['type'];

if (0 == strlen($value)) {
Expand Down

0 comments on commit 40f0640

Please sign in to comment.