| Package Information |
| Summary |
Zephir code parser. |
| Maintainers |
Anton Vasiliev <
anton at phalcon dot io >
(lead)
[wishlist]
[details]
|
| License |
MIT |
| Description |
Zephir Parser is a code parser, delivered as a C extension for the PHP language. |
| Homepage |
https://github.com/zephir-lang/php-zephir-parser
|
Release notes
Version 2.0.4
(stable)
|
### Fixed - A `-` glued to a digit right after a value (e.g. `len-1`, `5-1`, `arr[0]-1`, `len -1`) is now scanned as the binary subtraction operator instead of the sign of a negative literal, which previously produced a `Syntax error`. Unary negative literals (after `=`, `(`, `,`, `return`, etc.) are unchanged, so parameter defaults, constants and array keys keep their negative-literal AST ([zephir-lang/zephir#2011](https://github.com/zephir-lang/zephir/issues/2011)). |