Skip to content

Commit

Permalink
composer.json - disallow to run on PHP 7.2+
Browse files Browse the repository at this point in the history
  • Loading branch information
keradus committed Aug 16, 2016
1 parent 77850d7 commit d6ec4dd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Symfony/CS/Resources/phar-stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
fwrite(STDERR, "HHVM needs to be a minimum version of HHVM 3.9.0\n");
exit(1);
}
} elseif (!defined('PHP_VERSION_ID') || PHP_VERSION_ID < 50306) {
fwrite(STDERR, "PHP needs to be a minimum version of PHP 5.3.6\n");
} 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);
}

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.3.6 || ^7.0",
"php": "^5.3.6 || >=7.0 <7.2",
"ext-tokenizer": "*",
"symfony/console": "^2.3 || ^3.0",
"symfony/event-dispatcher": "^2.1 || ^3.0",
Expand Down
4 changes: 2 additions & 2 deletions php-cs-fixer
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ if (defined('HHVM_VERSION_ID')) {
fwrite(STDERR, "HHVM needs to be a minimum version of HHVM 3.9.0\n");
exit(1);
}
} elseif (!defined('PHP_VERSION_ID') || PHP_VERSION_ID < 50306) {
fwrite(STDERR, "PHP needs to be a minimum version of PHP 5.3.6\n");
} 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);
}

Expand Down

0 comments on commit d6ec4dd

Please sign in to comment.