github lkrms/pretty-php v0.4.56

latest releases: v0.4.72, v0.4.71, v0.4.70...
6 months ago

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 the Token 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

Don't miss a new pretty-php release

NewReleases is sending notifications on new releases.