Skip to content

Commit ecdc023

Browse files
committed
Reverted unneccessary type cast
1 parent daa783b commit ecdc023

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Filters/QueryMatchFilter.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,13 @@ public function filter($collection): array
7979
$return[] = $value;
8080
}
8181

82-
if (($operator === '=' || $operator === '==') && (string)$value1 === (string)$comparisonValue) {
82+
/** @noinspection TypeUnsafeComparisonInspection */
83+
if (($operator === '=' || $operator === '==') && $value1 == $comparisonValue) {
8384
$return[] = $value;
8485
}
8586

86-
if (($operator === '!=' || $operator === '!==' || $operator === '<>') && (string)$value1 !== (string)$comparisonValue) {
87+
/** @noinspection TypeUnsafeComparisonInspection */
88+
if (($operator === '!=' || $operator === '!==' || $operator === '<>') && $value1 != $comparisonValue) {
8789
$return[] = $value;
8890
}
8991

0 commit comments

Comments
 (0)