Download Latest Version Released version 4.2.4 source code.zip (64.6 kB)
Home / v4.2.4
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2026-10-26 788 Bytes
Released version 4.2.4 source code.tar.gz 2026-10-26 39.2 kB
Released version 4.2.4 source code.zip 2026-10-26 64.6 kB
Totals: 3 Items   104.6 kB 0

πŸ› Bug Fixes

  • fromCode() now keeps a file comment placed before declare(strict_types=1) (#182)
  • Extracting method and property hook bodies ignores the members of anonymous classes nested inside them
  • PropertyHookType is now an alias of PropertyAccessMode, so both enums are interchangeable wherever hooks are added or looked up

πŸ›‘οΈ Robustness

  • Invalid declarations now report a clear error when printed: a readonly property that is static or has a default value, a final private constant, an abstract final property hook, and an enum whose backing type is not int or string or whose case values do not match it
  • setHooks() validates hook types, and the presence of php-parser 5 is detected reliably, with a clear message when an older version is installed
Source: README.md, updated 2026-10-26