Browse Source

Fix broken assertion

split-manual
J. King 5 years ago
parent
commit
49820afe7d
  1. 2
      lib/Tokenizer.php

2
lib/Tokenizer.php

@ -161,7 +161,7 @@ class Tokenizer {
while (true) {
if (self::$debug) {
$state = self::STATE_NAMES[$this->state] ?? "";
assert($state, new Exception(Exception::UNKNOWN_ERROR));
assert(strlen($state) > 0, new Exception(Exception::UNKNOWN_ERROR));
echo "State: $state\n";
unset($state);
}

Loading…
Cancel
Save