Added
- Move comments if necessary for correct placement of adjacent delimiters and operators
- Normalise casts to their canonical form (e.g.
( DOUBLE ) $var
->(float) $var
)
Changed
- Refactor for clarity, speed and to reduce memory consumption
- Improve underlying API, incl. removal of unused methods and creation of a standalone
Parser
class - Update dependencies
Fixed
- Fix issue where an untrusted
PhpToken
polyfill may be extended from theToken
class on PHP 7.4 - Fix issue where
--operators-first
and--operators-last
have no effect - Fix issue where hanging indentation is not always applied when
--operators-first
is given