All Versions
64
Latest Version
Avg Release Cycle
43 days
Latest Release
800 days ago
Changelog History
Page 2
Changelog History
Page 2
-
v4.11.0 Changes
July 03, 2021โ Added
- ๐
BuilderFactory::args()
now accepts named arguments. - ๐
BuilderFactory::attribute()
has been added. - An
addAttribute()
method accepting anAttribute
orAttributeGroup
has been adde to all builders that accept attributes, such asBuilder\Class_
.
๐ Fixed
NameResolver
now handles enums.- ๐จ
PrettyPrinter
now prints backing enum type. - ๐ Builder methods for types now property handle
never
type.
- ๐
-
v4.10.5 Changes
May 03, 2021โ Added
- ๐ [PHP 8.1] Added support for enums. These are represented using the
Stmt\Enum_
andStmt\EnumCase
nodes. - ๐ [PHP 8.1] Added support for never type. This type will now be returned as an
Identifier
rather thanName
. - โ Added
ClassConst
builder.
๐ Changed
- Non-UTF-8 code units in strings will now be hex-encoded.
๐ Fixed
- ๐ Fixed precedence of arrow functions.
- ๐ [PHP 8.1] Added support for enums. These are represented using the
-
v4.10.4 Changes
December 20, 2020๐ Fixed
- ๐ Fixed position information for variable-variables (#741).
- ๐ Fixed position information for traits/interfaces preceded by if statement (#738).
-
v4.10.3 Changes
December 03, 2020๐ Fixed
- ๐ Fixed formatting-preserving pretty printing for
"{$x}"
. - ๐จ Ternary expressions are now treated as non-associative in the pretty printer, in order to generate code that is compatible with the parentheses requirement introduced in PHP 8.
- Removed no longer necessary
error_clear_last()
call in lexer, which may interfere with fatal error handlers if invoked during shutdown.
- ๐ Fixed formatting-preserving pretty printing for
-
v4.10.2 Changes
September 26, 2020๐ Fixed
- ๐ Fixed check for token emulation conflicts with other libraries.
-
v4.10.1 Changes
September 23, 2020โ Added
- โ Added support for recovering from a missing semicolon after a property or class constant declaration.
๐ Fixed
- ๐ Fix spurious whitespace in formatting-preserving pretty printer when both removing and adding elements at the start of a list.
- ๐ Fix incorrect case-sensitivity in keyword token emulation.
-
v4.10.0 Changes
September 19, 2020โ Added
- ๐ [PHP 8.0] Added support for attributes. These are represented using a new
AttributeGroup
node containingAttribute
nodes. A newattrGroups
subnode is available on all node types that support attributes, i.e.Stmt\Class_
,Stmt\Trait_
,Stmt\Interface_
,Stmt\Function_
,Stmt\ClassMethod
,Stmt\ClassConst
,Stmt\Property
,Expr\Closure
,Expr\ArrowFunction
andParam
. - ๐ [PHP 8.0] Added support for nullsafe properties inside interpolated strings, in line with an upstream change.
๐ Fixed
- ๐ Improved compatibility with other libraries that use forward compatibility defines for PHP tokens.
- ๐ [PHP 8.0] Added support for attributes. These are represented using a new
-
v4.9.1 Changes
August 30, 2020โ Added
- โ Added support for removing the first element of a list to the formatting-preserving pretty printer.
๐ Fixed
- ๐ Allow member modifiers as part of namespaced names. These were missed when support for other keywords was added.
-
v4.9.0 Changes
August 18, 2020โ Added
- ๐ [PHP 8.0] Added support for named arguments, represented using a new
name
subnode onArg
. - ๐ [PHP 8.0] Added support for static return type, represented like a normal class return type.
- ๐ [PHP 8.0] Added support for throw expression, represented using a new
Expr\Throw_
node. For backwards compatibility reasons, throw expressions in statement context continue to be represented usingStmt\Throw_
. - ๐ [PHP 8.0] Added support for keywords as parts of namespaced names.
๐ Fixed
- Emit parentheses for class constant fetch with complex left-hand-side.
- Emit parentheses for new/instanceof on complex class expression.
- ๐ [PHP 8.0] Added support for named arguments, represented using a new
-
v4.8.0 Changes
August 09, 2020โ Added
- ๐ [PHP 8.0] Added support for nullsafe operator, represented using the new
Expr\NullsafePropertyFetch
andExpr\NullsafeMethodCall
nodes. - โ Added
phpVersion
option to the emulative lexer, which allows controlling the target version to emulate (defaults to the latest available, currently PHP 8.0). This is useful to parse code that uses reserved keywords from newer PHP versions as identifiers.
- ๐ [PHP 8.0] Added support for nullsafe operator, represented using the new