Skip to content

Commit 32855d5

Browse files
committed
Drop support for PHP 5.3, becuase of bad support in Travis CI
1 parent 435b2d0 commit 32855d5

File tree

3 files changed

+4
-12
lines changed

3 files changed

+4
-12
lines changed

.travis.yml

-4
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
language: php
22

33
php:
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
1311
sudo: false
1412

1513
cache:
@@ -18,8 +16,6 @@ cache:
1816
- $HOME/.composer/cache
1917

2018
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
2319
- composer install --no-interaction --prefer-source
2420

2521
script:

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
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",

parallel-lint.php

+3-7
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22
use 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()
9292
try {
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
}

0 commit comments

Comments
 (0)