PHP Parser v4.2.0 Release Notes
Release Date: 2019-01-12 // over 5 years ago-
โ Added
- ๐ [PHP 7.4] Add support for typed properties through a new
type
subnode ofStmt\Property
. AdditionallyBuilder\Property
now has asetType()
method. (#567) - โ Add
kind
attribute toCast\Double_
, which allows to distinguish between(float)
,(double)
and(real)
. The form of the cast will be preserved by the pretty printer. (#565)
๐ Fixed
- โ Remove assertion when pretty printing anonymous class with a name (#554).
- ๐ [PHP 7.4] Add support for typed properties through a new