Skip to content

Commit f927c8e

Browse files
committed
Bring back support for PHP 5.3
As Parallel Lint supports PHP 5.3 again since [PR 51](php-parallel-lint/PHP-Parallel-Lint#51), it would be helpful for the Console Color repo to also support PHP 5.3. This restores the PHP 5.3 minimum version to the same as before the version drop in de0bf63
1 parent 415f8b3 commit f927c8e

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/test.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212

1313
strategy:
1414
matrix:
15-
php: ['5.4', '5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0']
15+
php: ['5.3', '5.4', '5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0']
1616
experimental: [false]
1717

1818
include:
@@ -34,6 +34,11 @@ jobs:
3434
coverage: none
3535
tools: cs2pr
3636

37+
# Remove PHPCS as it has a minimum PHP requirements of PHP 5.4 and would block install on PHP 5.3.
38+
- name: 'Composer: remove PHPCS'
39+
if: ${{ matrix.php < 5.4 }}
40+
run: composer remove --dev squizlabs/php_codesniffer --no-update
41+
3742
# Install dependencies and handle caching in one go.
3843
# @link https://github.com/marketplace/actions/install-composer-dependencies
3944
- name: Install Composer dependencies - normal

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"psr-4": {"PHP_Parallel_Lint\\PhpConsoleColor\\Test\\": "tests/"}
1616
},
1717
"require": {
18-
"php": ">=5.4.0"
18+
"php": ">=5.3.2"
1919
},
2020
"require-dev": {
2121
"phpunit/phpunit": "^4.8.36 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0",

0 commit comments

Comments
 (0)