File tree 3 files changed +4
-12
lines changed
3 files changed +4
-12
lines changed Original file line number Diff line number Diff line change 1
1
language : php
2
2
3
3
php :
4
- - 5.3.3
5
4
- 5.4
6
5
- 5.5
7
6
- 5.6
8
7
- 7.0
9
8
- 7.1
10
9
- 7.2
11
10
12
- dist : precise
13
11
sudo : false
14
12
15
13
cache :
18
16
- $HOME/.composer/cache
19
17
20
18
install :
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
23
19
- composer install --no-interaction --prefer-source
24
20
25
21
script :
Original file line number Diff line number Diff line change 4
4
"homepage" : " https://github.com/JakubOnderka/PHP-Parallel-Lint" ,
5
5
"license" : " BSD-2-Clause" ,
6
6
"require" : {
7
- "php" : " >=5.3.3 "
7
+ "php" : " >=5.4.0 "
8
8
},
9
9
"require-dev" : {
10
10
"nette/tester" : " ~1.3" ,
Original file line number Diff line number Diff line change 1
1
<?php
2
2
use JakubOnderka \PhpParallelLint ;
3
3
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 ;
6
6
die (255 );
7
7
}
8
8
@@ -31,7 +31,7 @@ function showOptions()
31
31
--colors Enable colors in console output. (disables auto detection of color support)
32
32
--no-colors Disable colors in console output.
33
33
--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.
35
35
--blame Try to show git blame for row with error.
36
36
--git <git> Path to Git executable to show blame message (default: 'git').
37
37
--stdin Load files and folder to test from standard input.
@@ -92,10 +92,6 @@ function showUsage()
92
92
try {
93
93
$ settings = PhpParallelLint \Settings::parseArguments ($ _SERVER ['argv ' ]);
94
94
95
- if ($ settings ->json && PHP_VERSION_ID < 50400 ) {
96
- throw new \Exception ('JSON output require PHP version 5.4 and newer. ' );
97
- }
98
-
99
95
if ($ settings ->stdin ) {
100
96
$ settings ->addPaths (PhpParallelLint \Settings::getPathsFromStdIn ());
101
97
}
You can’t perform that action at this time.
0 commit comments