Skip to content

Commit

Permalink
matchAtLeastOne needs to ensure a match
Browse files Browse the repository at this point in the history
  • Loading branch information
argoc authored May 31, 2017
1 parent ac02d4f commit 84d4807
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ protected function _noEof($x) {
*/
protected function _matchAtLeastOne($x) {
$this->_noEof($x);
if (!$this->lookahead['token'] == $x) {
if ($this->lookahead['token'] != $x) {
throw new LogicException("Expecting " .
$x . ", found " .
Lexer::tokenerr($this->lookahead));
Expand Down

0 comments on commit 84d4807

Please sign in to comment.