Skip to content

Latest commit

 

History

History
27 lines (14 loc) · 1.23 KB

README.md

File metadata and controls

27 lines (14 loc) · 1.23 KB

phpfmt_7-1

Fix the phpfmt nullable types space issue with php 7.1 and above : nanch/phpfmt_stable#36

Fix the phpfmt space after "yield from" issue with php 7.1 and above : nanch/phpfmt_stable#37

Fix the ClassToStatic pass issue : nanch/phpfmt_stable#31

Fix modifier issue when PHP keyword is used as method name : nanch/phpfmt_stable#18 / nanch/phpfmt_stable#19

Fix : PHP keyword used as function names must not be lowercased since PHP7

Fix replace is_null when preceded by an exclamation to negate it : nanch/phpfmt_stable#11

Install https://github.com/nanch/phpfmt_stable then replace the fmt.phar

To replace it you can either use the one provided here (not recommended) or use the fix-fmt.php script to automatically fix your current fmt.phar file.

With the provided script

The provided script takes no argument but contains the path of the file to fix so I would recommend you to replace the fourth line if necessary.

Also the PHP configuration "phar.readonly" must be disable for the fix-fmt.php script to fix the phar content.

Example : php -d "phar.readonly=0" fix-fmt.php