Skip to content

Commit 9196be4

Browse files
committed
Update dep.
1 parent 4c757a7 commit 9196be4

File tree

2 files changed

+249
-247
lines changed

2 files changed

+249
-247
lines changed

plugins/Sandbox/src/Model/Filter/EmptyValuesTestFilterCollection.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,15 @@ class EmptyValuesTestFilterCollection extends FilterCollection {
1212
*/
1313
public function initialize(): void {
1414
$this->callback('has_phone_code', [
15-
'callback' => function (SelectQuery $query, array $args, $manager) {
16-
$hasPhoneCode = (bool)$args['has_phone_code'];
15+
'callback' => function (SelectQuery $query, array $args, $filter): bool {
16+
$hasPhoneCode = (bool)$args['has_phone_code'];
1717
if ($hasPhoneCode) {
1818
$query->where(['phone_code IS NOT' => null]);
1919
} else {
2020
$query->where(['phone_code IS' => null]);
2121
}
22+
23+
return true;
2224
},
2325
])
2426
->like('phone_code');

0 commit comments

Comments
 (0)