Skip to content

Commit

Permalink
run SCA on 7.2-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
keradus committed Feb 27, 2017
1 parent a682d6f commit 476405d
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ matrix:
- php: 7.1
env: TASK_SCA=1
- php: nightly
env: TASK_SCA=1 COMPOSER_FLAGS="--ignore-platform-reqs"
env: TASK_SCA=1 COMPOSER_FLAGS="--ignore-platform-reqs" PHP_CS_FIXER_IGNORE_ENV=1
- php: 5.3
env: SKIP_LINT_TEST_CASES=1 COMPOSER_FLAGS="--prefer-stable --prefer-lowest"
- php: 5.4
Expand Down
18 changes: 14 additions & 4 deletions php-cs-fixer
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,22 @@

if (defined('HHVM_VERSION_ID')) {
if (HHVM_VERSION_ID < 30900) {
fwrite(STDERR, "HHVM needs to be a minimum version of HHVM 3.9.0\n");
exit(1);
fwrite(STDERR, "HHVM needs to be a minimum version of HHVM 3.9.0.\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");
} else {
exit(1);
}
}
} elseif (!defined('PHP_VERSION_ID') || PHP_VERSION_ID < 50306 || PHP_VERSION_ID >= 70200) {
fwrite(STDERR, "PHP needs to be a minimum version of PHP 5.3.6 and maximum version of PHP 7.1.*\n");
exit(1);
fwrite(STDERR, "PHP needs to be a minimum version of PHP 5.3.6 and maximum version of PHP 7.1.*.\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");
} else {
exit(1);
}
}

set_error_handler(function ($severity, $message, $file, $line) {
Expand Down
18 changes: 14 additions & 4 deletions src/Resources/phar-stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,22 @@

if (defined('HHVM_VERSION_ID')) {
if (HHVM_VERSION_ID < 30900) {
fwrite(STDERR, "HHVM needs to be a minimum version of HHVM 3.9.0\n");
exit(1);
fwrite(STDERR, "HHVM needs to be a minimum version of HHVM 3.9.0.\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");
} else {
exit(1);
}
}
} elseif (!defined('PHP_VERSION_ID') || PHP_VERSION_ID < 50306 || PHP_VERSION_ID >= 70200) {
fwrite(STDERR, "PHP needs to be a minimum version of PHP 5.3.6 and maximum version of PHP 7.1.*\n");
exit(1);
fwrite(STDERR, "PHP needs to be a minimum version of PHP 5.3.6 and maximum version of PHP 7.1.*.\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");
} else {
exit(1);
}
}

set_error_handler(function ($severity, $message, $file, $line) {
Expand Down

0 comments on commit 476405d

Please sign in to comment.