Skip to content

Commit f076d33

Browse files
committed
Rename operand variable.
1 parent 00bdbb5 commit f076d33

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/WS/Utils/Collections/Functions/Expression/BoolExpression.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ public static function with(callable $checker): self
2727

2828
public function __invoke($item): bool
2929
{
30-
$value = null;
30+
$operand = null;
3131
foreach ($this->operators as $operator) {
32-
if ($value === null) {
33-
if (!$value = $operator->getChecker()($item)) {
32+
if ($operand === null) {
33+
if (!$operand = $operator->getChecker()($item)) {
3434
return false;
3535
}
3636
continue;
3737
}
38-
if (!$value = $operator($value, $item)) {
38+
if (!$operand = $operator($operand, $item)) {
3939
return false;
4040
}
4141
}

0 commit comments

Comments
 (0)