Skip to content

Commit

Permalink
Fix clause evaluation
Browse files Browse the repository at this point in the history
Break out of the foreach loop when we have a matching operator (otherwise >= will evaluate to >).
  • Loading branch information
benmajor committed Oct 30, 2019
1 parent dc2cf33 commit 1087a7c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/JQL.php
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,9 @@ public function where( string $where )
'operand' => $find,
'compare' => trim(end($clauseParts))
];

# If we've found one, break (otherwise >= will evaluate to >):
break;
}
}
}
Expand Down

0 comments on commit 1087a7c

Please sign in to comment.