Skip to content

Commit 7e67039

Browse files
caothang53sandyandi
authored andcommitted
Update value comparing (#16)
1 parent de2c60d commit 7e67039

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controllers/api/BaseApiController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ function ($value, $operator) use ($filterField) {
161161
$this->queryBuilder->where(
162162
$filterField,
163163
self::FILTER_OPERATORS_MAPPING[$operator] ?? self::DEFAULT_FILTER_OPERATOR,
164-
($operator == 'contains') ? '%' . $value . '%' : $value
164+
($operator === 'contains') ? '%' . $value . '%' : $value
165165
);
166166
}
167167
);

0 commit comments

Comments
 (0)