Skip to content

Commit e79a640

Browse files
committed
Add official support for PHP 7.3
1 parent 002f98b commit e79a640

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

.travis.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,15 +94,14 @@ jobs:
9494
<<: *STANDARD_TEST_JOB
9595
stage: Test
9696
php: 7.3
97-
env: COMPOSER_FLAGS="--ignore-platform-reqs" PHP_CS_FIXER_IGNORE_ENV=1 SYMFONY_DEPRECATIONS_HELPER=weak
9897
before_script:
9998
- php php-cs-fixer fix --rules @PHP71Migration,@PHP71Migration:risky,blank_line_after_opening_tag -q || travis_terminate 1
10099

101100
-
102101
<<: *STANDARD_TEST_JOB
103102
stage: Test
104103
php: 7.3
105-
env: COLLECT_COVERAGE=1 COMPOSER_FLAGS="--ignore-platform-reqs" PHP_CS_FIXER_IGNORE_ENV=1 SYMFONY_DEPRECATIONS_HELPER=weak
104+
env: COLLECT_COVERAGE=1
106105
before_install:
107106
# check phpdbg
108107
- phpdbg --version 2> /dev/null || { echo 'No phpdbg'; export COLLECT_COVERAGE=0; }
@@ -153,4 +152,4 @@ jobs:
153152

154153
allow_failures:
155154
- php: nightly
156-
- env: COLLECT_COVERAGE=1 COMPOSER_FLAGS="--ignore-platform-reqs" PHP_CS_FIXER_IGNORE_ENV=1 SYMFONY_DEPRECATIONS_HELPER=weak
155+
- env: COLLECT_COVERAGE=1

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 <7.3",
17+
"php": "^5.6 || ^7.0",
1818
"ext-json": "*",
1919
"ext-tokenizer": "*",
2020
"composer/semver": "^1.4",

php-cs-fixer

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ if (defined('HHVM_VERSION_ID')) {
2727
} else {
2828
exit(1);
2929
}
30-
} elseif (!defined('PHP_VERSION_ID') || \PHP_VERSION_ID < 50600 || \PHP_VERSION_ID >= 70300) {
31-
fwrite(STDERR, "PHP needs to be a minimum version of PHP 5.6.0 and maximum version of PHP 7.2.*.\n");
30+
} elseif (!defined('PHP_VERSION_ID') || \PHP_VERSION_ID < 50600 || \PHP_VERSION_ID >= 70400) {
31+
fwrite(STDERR, "PHP needs to be a minimum version of PHP 5.6.0 and maximum version of PHP 7.3.*.\n");
3232

3333
if (getenv('PHP_CS_FIXER_IGNORE_ENV')) {
3434
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
@@ -128,7 +128,7 @@ public function testIntegration(
128128
$steps[4],
129129
]);
130130

131-
$optionalIncompatibilityWarning = 'PHP needs to be a minimum version of PHP 5.6.0 and maximum version of PHP 7.2.*.
131+
$optionalIncompatibilityWarning = 'PHP needs to be a minimum version of PHP 5.6.0 and maximum version of PHP 7.3.*.
132132
Ignoring environment requirements because `PHP_CS_FIXER_IGNORE_ENV` is set. Execution may be unstable.
133133
';
134134

0 commit comments

Comments
 (0)