github lkrms/pretty-php v0.4.19

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

Added

  • Add symfony preset (CLI only)

Changed

  • Make magic-commas rule mandatory and remove it from command line options
  • Rename align-assignments rule to align-data
  • Adopt Box for cleaner, leaner PHAR builds
  • Remove upper limit on PHP version to allow running on PHP 8.3
  • Suppress E_COMPILE_WARNING errors (they can't be caught or actioned, don't affect output and aren't user-friendly)

Fixed

  • Fix issue where hanging indentation is not consistent within lists

    e.g. 'e' should be aligned with 'g' here:

    <?php
    $a = array('b' => array('c' => 'd',
                'e' => 'f',
            'g' => 'h'),
        'i' => array(1,
            2,
            3),
        'j' => array('k',
            7 => 'l',
            'm'));

Don't miss a new pretty-php release

NewReleases is sending notifications on new releases.