Skip to content

Commit

Permalink
Require PHP 7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
keradus committed Oct 27, 2020
1 parent 38042b5 commit a1594c4
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 17 deletions.
2 changes: 0 additions & 2 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ environment:
matrix:
- php_ver: 7.3.1
FAST_LINT_TEST_CASES: 1
- php_ver: 5.6.40
SKIP_LINT_TEST_CASES: 1

cache:
- '%APPDATA%\Composer'
Expand Down
11 changes: 2 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:

- &STANDARD_TEST_JOB
stage: Fast Test
php: 7.0
php: 7.1
install:
# Composer: enforce given Symfony components version
- if [ "$SYMFONY_VERSION" != "" ]; then composer global show symfony/flex -q || travis_retry composer global require $DEFAULT_COMPOSER_FLAGS symfony/flex; fi
Expand All @@ -77,16 +77,9 @@ jobs:
-
<<: *STANDARD_TEST_JOB
stage: Test
php: 5.6
php: 7.0
env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest"

-
<<: *STANDARD_TEST_JOB
stage: Test
php: 7.1
name: 7.1 | Symfony ~4.1.0
env: SYMFONY_DEPRECATIONS_HELPER=disabled PHP_CS_FIXER_TEST_USE_LEGACY_TOKENIZER=1 SYMFONY_VERSION="~4.1.0"

-
<<: *STANDARD_TEST_JOB
stage: Test
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
}
],
"require": {
"php": "^5.6 || ^7.0",
"php": "^7.0",
"ext-json": "*",
"ext-tokenizer": "*",
"composer/semver": "^1.4 || ^2.0 || ^3.0",
Expand Down
2 changes: 1 addition & 1 deletion dev-tools/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
set -eu

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

# require suggested packages
composer require --no-update symfony/polyfill-mbstring
Expand Down
2 changes: 1 addition & 1 deletion doc/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Installation
Requirements
------------

PHP needs to be a minimum version of PHP 5.6.0.
PHP needs to be a minimum version of PHP 7.0.0.

Installation
------------
Expand Down
4 changes: 2 additions & 2 deletions php-cs-fixer
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ if (defined('HHVM_VERSION_ID')) {
} else {
exit(1);
}
} elseif (!defined('PHP_VERSION_ID') || \PHP_VERSION_ID < 50600 || \PHP_VERSION_ID >= 70500) {
fwrite(STDERR, "PHP needs to be a minimum version of PHP 5.6.0 and maximum version of PHP 7.4.*.\n");
} elseif (!defined('PHP_VERSION_ID') || \PHP_VERSION_ID < 70000 || \PHP_VERSION_ID >= 70500) {
fwrite(STDERR, "PHP needs to be a minimum version of PHP 7.0.0 and maximum version of PHP 7.4.*.\n");

if (getenv('PHP_CS_FIXER_IGNORE_ENV')) {
fwrite(STDERR, "Ignoring environment requirements because `PHP_CS_FIXER_IGNORE_ENV` is set. Execution may be unstable.\n");
Expand Down
2 changes: 1 addition & 1 deletion tests/Smoke/CiIntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public function testIntegration(
$steps[4],
]);

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

Expand Down

0 comments on commit a1594c4

Please sign in to comment.