Skip to content

Commit a1594c4

Browse files
committed
Require PHP 7.0
1 parent 38042b5 commit a1594c4

File tree

7 files changed

+8
-17
lines changed

7 files changed

+8
-17
lines changed

.appveyor.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ environment:
77
matrix:
88
- php_ver: 7.3.1
99
FAST_LINT_TEST_CASES: 1
10-
- php_ver: 5.6.40
11-
SKIP_LINT_TEST_CASES: 1
1210

1311
cache:
1412
- '%APPDATA%\Composer'

.travis.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262

6363
- &STANDARD_TEST_JOB
6464
stage: Fast Test
65-
php: 7.0
65+
php: 7.1
6666
install:
6767
# Composer: enforce given Symfony components version
6868
- if [ "$SYMFONY_VERSION" != "" ]; then composer global show symfony/flex -q || travis_retry composer global require $DEFAULT_COMPOSER_FLAGS symfony/flex; fi
@@ -77,16 +77,9 @@ jobs:
7777
-
7878
<<: *STANDARD_TEST_JOB
7979
stage: Test
80-
php: 5.6
80+
php: 7.0
8181
env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest"
8282

83-
-
84-
<<: *STANDARD_TEST_JOB
85-
stage: Test
86-
php: 7.1
87-
name: 7.1 | Symfony ~4.1.0
88-
env: SYMFONY_DEPRECATIONS_HELPER=disabled PHP_CS_FIXER_TEST_USE_LEGACY_TOKENIZER=1 SYMFONY_VERSION="~4.1.0"
89-
9083
-
9184
<<: *STANDARD_TEST_JOB
9285
stage: Test

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
}
1515
],
1616
"require": {
17-
"php": "^5.6 || ^7.0",
17+
"php": "^7.0",
1818
"ext-json": "*",
1919
"ext-tokenizer": "*",
2020
"composer/semver": "^1.4 || ^2.0 || ^3.0",

dev-tools/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -eu
33

44
# ensure that deps will work on lowest supported PHP version
5-
composer config platform.php 2> /dev/null || composer config platform.php 5.6.0
5+
composer config platform.php 2> /dev/null || composer config platform.php 7.0.0
66

77
# require suggested packages
88
composer require --no-update symfony/polyfill-mbstring

doc/installation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Installation
55
Requirements
66
------------
77

8-
PHP needs to be a minimum version of PHP 5.6.0.
8+
PHP needs to be a minimum version of PHP 7.0.0.
99

1010
Installation
1111
------------

php-cs-fixer

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ if (defined('HHVM_VERSION_ID')) {
2323
} else {
2424
exit(1);
2525
}
26-
} elseif (!defined('PHP_VERSION_ID') || \PHP_VERSION_ID < 50600 || \PHP_VERSION_ID >= 70500) {
27-
fwrite(STDERR, "PHP needs to be a minimum version of PHP 5.6.0 and maximum version of PHP 7.4.*.\n");
26+
} elseif (!defined('PHP_VERSION_ID') || \PHP_VERSION_ID < 70000 || \PHP_VERSION_ID >= 70500) {
27+
fwrite(STDERR, "PHP needs to be a minimum version of PHP 7.0.0 and maximum version of PHP 7.4.*.\n");
2828

2929
if (getenv('PHP_CS_FIXER_IGNORE_ENV')) {
3030
fwrite(STDERR, "Ignoring environment requirements because `PHP_CS_FIXER_IGNORE_ENV` is set. Execution may be unstable.\n");

tests/Smoke/CiIntegrationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public function testIntegration(
139139
$steps[4],
140140
]);
141141

142-
$optionalIncompatibilityWarning = 'PHP needs to be a minimum version of PHP 5.6.0 and maximum version of PHP 7.4.*.
142+
$optionalIncompatibilityWarning = 'PHP needs to be a minimum version of PHP 7.0.0 and maximum version of PHP 7.4.*.
143143
Ignoring environment requirements because `PHP_CS_FIXER_IGNORE_ENV` is set. Execution may be unstable.
144144
';
145145

0 commit comments

Comments
 (0)