xp-framework / compiler

Compiles future PHP to today's PHP.
19 stars 0 forks source link

Adjust to new PHP annotation syntax #86

Closed thekid closed 3 years ago

thekid commented 4 years ago

Use #[...] instead of << >>, see https://wiki.php.net/rfc/shorter_attribute_syntax

thekid commented 4 years ago

Initial syntactic support added to xp-framework/ast https://github.com/xp-framework/ast/pull/7 though still missing inline attributes and support for multiple arguments

thekid commented 4 years ago

The pull request xp-framework/ast#7 can now be merged; and the dependency updated accordingly.

thekid commented 4 years ago

1️⃣ First step released in https://github.com/xp-framework/compiler/releases/tag/v5.2.0

thekid commented 3 years ago

2️⃣ With named arguments support in https://github.com/xp-framework/compiler/releases/tag/v5.3.0, we can now support rewriting annotations to more idiomatic PHP

thekid commented 3 years ago

3️⃣ With xp-framework/ast#9 merged, deprecation notices will be emitted (but production code continues to work!)

thekid commented 3 years ago

4️⃣ Released officially along with https://github.com/xp-framework/compiler/releases/tag/v5.4.0