tainacan/verify_compat.sh

11 lines
344 B
Bash
Raw Normal View History

touch report.txt
echo 'Verifing potencial incompatibilities with php 5.6 or greater'
echo 'W is Warning'
echo 'E is Error'
./src/vendor/bin/phpcs -p . --standard=PHPCompatibility --extensions=php --ignore=*/node_modules/*,*/src/vendor/* --report-file=./report.txt --runtime-set testVersion 5.6
Fixes incompatibilities with older versions of PHP FILE: tainacan/src/importer/class-tainacan-importer.php ----------------------------------------------------------------------------------- FOUND 3 ERRORS AFFECTING 2 LINES ----------------------------------------------------------------------------------- 603 | ERROR | 'int' type declaration is not present in PHP version 5.6 or earlier 616 | ERROR | 'int' type declaration is not present in PHP version 5.6 or earlier 616 | ERROR | 'int' type declaration is not present in PHP version 5.6 or earlier ----------------------------------------------------------------------------------- FILE: tainacan/src/classes/class-tainacan-elastic-press.php ---------------------------------------------------------------------------------------- FOUND 2 ERRORS AFFECTING 2 LINES ---------------------------------------------------------------------------------------- 16 | ERROR | Using a call-time pass-by-reference is deprecated since PHP 5.3 and | | prohibited since PHP 5.4 24 | ERROR | Using a call-time pass-by-reference is deprecated since PHP 5.3 and | | prohibited since PHP 5.4 ---------------------------------------------------------------------------------------- FILE: tainacan/src/classes/class-tainacan-bulk-edit.php ---------------------------------------------------------------------------------------- FOUND 2 ERRORS AFFECTING 2 LINES ---------------------------------------------------------------------------------------- 78 | ERROR | Using a call-time pass-by-reference is deprecated since PHP 5.3 and | | prohibited since PHP 5.4 85 | ERROR | Using a call-time pass-by-reference is deprecated since PHP 5.3 and | | prohibited since PHP 5.4 ----------------------------------------------------------------------------------------
2018-08-02 11:57:32 +00:00
echo 'Done'
echo 'Results are in ./report.txt'