🐛 Bug Fixes
fromCode()now keeps a file comment placed beforedeclare(strict_types=1)(#182)- Extracting method and property hook bodies ignores the members of anonymous classes nested inside them
PropertyHookTypeis now an alias ofPropertyAccessMode, 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 privateconstant, anabstract finalproperty 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