Skip to content
This repository has been archived by the owner on May 20, 2019. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
knesmeyanov committed Jul 10, 2018
2 parents d62c72f + 361174e commit ff83f45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public static function create(array $tokens, array $skip = [], int $flags = self
switch (true) {
case self::isMultistate($flags):
$error = \vsprintf('Multistate %slexer does not implemented yet', [
self::isLookahead($flags) ? 'lookahead ' : ''
self::isLookahead($flags) ? 'lookahead ' : '',
]);
throw new \InvalidArgumentException($error);

Expand Down
2 changes: 1 addition & 1 deletion src/MultistateLexerInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ interface MultistateLexerInterface extends SimpleLexerInterface
* @param int|null $nextState
* @return MultistateLexerInterface
*/
public function state(string $token, int $state, int $nextState = null): MultistateLexerInterface;
public function state(string $token, int $state, int $nextState = null): self;
}

0 comments on commit ff83f45

Please sign in to comment.