globalpayments / php-sdk

GNU General Public License v2.0
49 stars 66 forks source link

Fix php compatibility to php5.6 [WIP] #44

Closed EugeneBogun closed 3 years ago

EugeneBogun commented 4 years ago

Issue

After run ./vendor/bin/phpcs -p src --standard=PHPCompatibility --runtime-set testVersion 5.6- --report=source I got next errors

PHP CODE SNIFFER VIOLATION SOURCE SUMMARY
----------------------------------------------------------------------
STANDARD  CATEGORY            SNIFF                              COUNT
----------------------------------------------------------------------
PHPCompa  Operators           New operators t_coalesce found     26
PHPCompa  Function declar  New param type declarations bool   2
PHPCompa  Keywords            Forbidden names and found          1
----------------------------------------------------------------------
A TOTAL OF 29 SNIFF VIOLATIONS WERE FOUND IN 3 SOURCES
----------------------------------------------------------------------

Time: 45.79 secs; Memory: 26Mb

Changelog