vanderlee / Comprehend

PHP 5/7 framework for creating complex scanners, lexer, tokenizers and parsers based on BNF (and variant) formal syntax definitions.
MIT License
6 stars 2 forks source link

Compatibility issue with PHP8 #6

Open MacFJA opened 2 years ago

MacFJA commented 2 years ago

The library is not compatible with PHP 8 due to its use of Match as a class name.

Since PHP 8.0, match is a reserved keyword (https://www.php.net/manual/en/migration80.incompatible.php)


Either the Match class need to be renamed, or the composer.json need to be updated to indicate that the lib is not compatible with PHP 8

  "require": {
    "php": ">=7.0.0 <8.0.0"
  }