Changed
-
If
preserve-one-line
is enabled, format multi-line control structures where everyif
/elseif
/else
ortry
/catch
/finally
statement starts and ends on the same line as follows:<?php if ($foo) { foo(); } elseif ($bar) { bar(); } else { baz(); }
-
In
pretty-php
, use friendly rule names when reporting incompatible rules
Fixed
- Fix issue where invalid arguments to
pretty-php
may not be reported if every input file has an associated config file - Adopt upstream fix for issue where tabs in the input may not be expanded correctly