Download Latest Version PHP-Parser 5.4.0 source code.zip (271.1 kB)
Email in envelope

Get an email when there's a new version of PHP Parser

Home / v5.4.0
Name Modified Size InfoDownloads / Week
Parent folder
PHP-Parser 5.4.0 source code.tar.gz 2024-12-30 148.6 kB
PHP-Parser 5.4.0 source code.zip 2024-12-30 271.1 kB
README.md 2024-12-30 836 Bytes
Totals: 3 Items   420.5 kB 4

Added

  • Added Property::isAbstract() and Property::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() and Param::isPublic() now returns true for parameters that have property hooks but no explicit visibility modifier.
  • PropertyHook::getStmts() now correctly desugars short set hooks. set => $value will be expanded to set { $this->propertyName = $value; }. This requires the propertyName 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.
Source: README.md, updated 2024-12-30