xp-framework / compiler

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

Add support for null, true and false types #140

Closed thekid closed 2 years ago

thekid commented 2 years ago

See https://wiki.php.net/rfc/null-false-standalone-types and https://wiki.php.net/rfc/true-type, all available in PHP 8.2. Will be omitted from the generated code for PHP < 8.2

thekid commented 2 years ago

Will be omitted from the generated code for PHP < 8.2

We could decide to emit true and false as bool, too.

thekid commented 2 years ago

Released in https://github.com/xp-framework/compiler/releases/tag/v8.5.0

thekid commented 2 years ago

https://github.com/xp-framework/compiler/wiki/Implementation-status updated ✔️