Added
- Added
Property::isAbstract()
andProperty::isFinal()
methods. - Added
PropertyHook::isFinal()
method. - Emit an error if property hook is used on declaration with multiple properties.
Fixed
- Make legacy class aliases compatible with classmap-authoritative autoloader.
Param::isPromoted()
andParam::isPublic()
now returns true for parameters that have property hooks but no explicit visibility modifier.PropertyHook::getStmts()
now correctly desugars shortset
hooks.set => $value
will be expanded toset { $this->propertyName = $value; }
. This requires thepropertyName
attribute on the hook to be set, which is now also set by the parser. If the attribute is not set,getStmts()
will throw an error for short set hooks, as it is not possible to produce a correct desugaring.