| 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.1
(stable)
|
### Added - Added grammar rule for `<static>` cast and method return type. `STATIC` is a reserved keyword token, so `<static>` never reached the existing `LESS IDENTIFIER GREATER` cast rule and was rejected as a syntax error. A dedicated `LESS STATIC GREATER` production now emits the literal `"static"` string in the same AST shape that `<self>` (and any other `<IDENTIFIER>` cast) produces, so the downstream compiler picks it up with no further parser-level changes. Enables `public function foo() -> <static>` for late-static-binding return types in Zephir ([zephir-lang/zephir#2505](https://github.com/zephir-lang/zephir/issues/2505)). |