File tree Expand file tree Collapse file tree 3 files changed +4
-12
lines changed Expand file tree Collapse file tree 3 files changed +4
-12
lines changed Original file line number Diff line number Diff line change 11language : php
22
33php :
4- - 5.3.3
54 - 5.4
65 - 5.5
76 - 5.6
87 - 7.0
98 - 7.1
109 - 7.2
1110
12- dist : precise
1311sudo : false
1412
1513cache :
1816 - $HOME/.composer/cache
1917
2018install :
21- - if [ "$TRAVIS_PHP_VERSION" == "5.3.3" ]; then composer config disable-tls true; fi
22- - if [ "$TRAVIS_PHP_VERSION" == "5.3.3" ]; then composer config secure-http false; fi
2319 - composer install --no-interaction --prefer-source
2420
2521script :
Original file line number Diff line number Diff line change 44 "homepage" : " https://github.com/JakubOnderka/PHP-Parallel-Lint" ,
55 "license" : " BSD-2-Clause" ,
66 "require" : {
7- "php" : " >=5.3.3 "
7+ "php" : " >=5.4.0 "
88 },
99 "require-dev" : {
1010 "nette/tester" : " ~1.3" ,
Original file line number Diff line number Diff line change 11<?php
22use JakubOnderka \PhpParallelLint ;
33
4- if (!defined ('PHP_VERSION_ID ' ) || PHP_VERSION_ID < 50303 ) {
5- echo "PHP Parallel Lint require PHP 5.3.3 or newer. " , PHP_EOL ;
4+ if (!defined ('PHP_VERSION_ID ' ) || PHP_VERSION_ID < 50400 ) {
5+ echo "PHP Parallel Lint require PHP 5.4.0 or newer. " , PHP_EOL ;
66 die (255 );
77}
88
@@ -31,7 +31,7 @@ function showOptions()
3131 --colors Enable colors in console output. (disables auto detection of color support)
3232 --no-colors Disable colors in console output.
3333 --no-progress Disable progress in console output.
34- --json Output results as JSON string (require PHP 5.4) .
34+ --json Output results as JSON string.
3535 --blame Try to show git blame for row with error.
3636 --git <git> Path to Git executable to show blame message (default: 'git').
3737 --stdin Load files and folder to test from standard input.
@@ -92,10 +92,6 @@ function showUsage()
9292try {
9393 $ settings = PhpParallelLint \Settings::parseArguments ($ _SERVER ['argv ' ]);
9494
95- if ($ settings ->json && PHP_VERSION_ID < 50400 ) {
96- throw new \Exception ('JSON output require PHP version 5.4 and newer. ' );
97- }
98-
9995 if ($ settings ->stdin ) {
10096 $ settings ->addPaths (PhpParallelLint \Settings::getPathsFromStdIn ());
10197 }
You can’t perform that action at this time.
0 commit comments