Releases: xp-framework/compiler
Releases · xp-framework/compiler
3.0.0: Compiler continuation
- Made compatible with PHP 7.4 - refrain using
{}
for string offsets
(@thekid)
- Merged PR #45 - Multiple errors - @thekid
- Changed compiler to emit deprecation warnings for Hack language style
arrow functions and compact methods using ==>
, instead advocating the
use of PHP 7.4 with the fn
keyword; see issue #65
(@thekid)
2.13.0: PHP 7.4 features
- Added preliminary PHP 8 support - see #62 (@thekid)
- Added support for PHP 7.4 features
- Implemented numeric literal separator, e.g.
1_000_000_000
- see #61
- Implemented null-colaesce assignment operator
??=
- see #58
- Implemented support PHP 7.4-style short closures with
fn
- see #60
- Implemented support for emitting typed properties in PHP 7.4 - see #57
(@thekid)
2.12.0: PHP 7.3 compatibility
2.11.0: Filenames in errors
- Merged PR #54: Ensure filenames in errors reflect source files - @thekid
2.10.1: URI loading fixes
- Fixed throw expressions with variables, e.g.
() ==> throw $e;
.
(@thekid)
- Fixed URI loading for CompilingClassLoader - this way, loading
classes via URIs works, and thus e.g. xp test path/to/Test.php
.
(@thekid)
2.10.0: Throw expression
- Merged PR #53: Implement throw expressions - @thekid
2.9.0: Arrow functions with blocks, goto
- Merged PR #52: Implement "goto" statement - @thekid
- Merged PR #50: Allow arrow functions with blocks - @thekid
2.8.0: Echo
- Merged PR #47: Allow empty catch type to catch all exceptions - @thekid
- Merged PR #44: Implement
echo
statement - @thekid
2.7.0: Compile only mode
- Merged PR #43: Add "-n" command line option to compile only - @thekid
- Merged PR #42: Raise errors when members are redeclared - @thekid