Skip to content

Make phpfmt compatible with PHP7.1 and fix some issues

Notifications You must be signed in to change notification settings

MKCG/phpfmt_7-1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

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

About

Make phpfmt compatible with PHP7.1 and fix some issues

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages