Releases: xp-framework/compiler
Releases · xp-framework/compiler
6.10.0: Target runtimes
6.9.0: Readonly properties
6.8.3: Promoted property types fix
- Fixed types not being emitted for promoted properties - @thekid
6.8.2: Extraneous operators fix
- Fixed Call to undefined method ...::emitoperator()) which do not
provide any context as to where an extraneous operator was encountered.
(@thekid)
6.8.1: Enum constants fix
6.8.0: Intersection types
6.7.0: Native callable syntax
- Changed emitter to omit extra newlines between members, making line
numbers more consistent with the original code.
(@thekid) - Merged PR #114: Implements first-class callable syntax:
strlen(...)
now returns a closure which if invoked with a string argument, returns
its length. Includes support for static and instance methods as well as
indirect references like$closure(...)
andself::{$expression}(...)
,
see https://wiki.php.net/rfc/first_class_callable_syntax
(@thekid)
6.6.0: Performance, code coverage improvements
- Emit null-coalesce operator as
$a ?? $a= expression
instead of as
$a= $a ?? expression
, saving one assignment operation for non-null
case. Applies to PHP 7.0, 7.1 and 7.2.
(@thekid) - Removed conditional checks for PHP 8.1 with native enum support, all
releases and builds available on CI systems now contain it.
(@thekid) - Increased test coverage significantly (to more than 90%), especially
for classes used by the compiler command line.
(@thekid)