Mercurial > hg > isophonics-drupal-site
diff vendor/theseer/tokenizer/src/Tokenizer.php @ 18:af1871eacc83
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:33:08 +0100 |
parents | 1fec387a4317 |
children |
line wrap: on
line diff
--- a/vendor/theseer/tokenizer/src/Tokenizer.php Thu Feb 28 13:21:36 2019 +0000 +++ b/vendor/theseer/tokenizer/src/Tokenizer.php Thu May 09 15:33:08 2019 +0100 @@ -41,6 +41,11 @@ public function parse(string $source): TokenCollection { $result = new TokenCollection(); + + if ($source === '') { + return $result; + } + $tokens = token_get_all($source); $lastToken = new Token(