1
0
Fork 0

Make sure platform-check returns a non-0 exit code if it fails

pull/8837/head
Jordi Boggiano 2020-04-24 13:25:13 +02:00
parent f34ec13253
commit d494df61ff
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
7 changed files with 14 additions and 7 deletions

View File

@ -660,7 +660,8 @@ if (!(PHP_VERSION_ID $lowestOperator $lowestPhpVersionId && PHP_VERSION_ID $high
} }
$requiredExtensions $requiredExtensions
if (\$issues) { if (\$issues) {
die('Composer detected issues in your platform:' . "\\n\\n" . implode("\\n", \$issues)); echo 'Composer detected issues in your platform:' . "\\n\\n" . implode("\\n", \$issues);
exit(104);
} }
PLATFORM_CHECK; PLATFORM_CHECK;

View File

@ -9,5 +9,6 @@ if (!(PHP_VERSION_ID >= 70200 && PHP_VERSION_ID < 80000)) {
} }
if ($issues) { if ($issues) {
die('Composer detected issues in your platform:' . "\n\n" . implode("\n", $issues)); echo 'Composer detected issues in your platform:' . "\n\n" . implode("\n", $issues);
exit(104);
} }

View File

@ -9,5 +9,6 @@ if (!(PHP_VERSION_ID >= 0 && PHP_VERSION_ID < 80000)) {
} }
if ($issues) { if ($issues) {
die('Composer detected issues in your platform:' . "\n\n" . implode("\n", $issues)); echo 'Composer detected issues in your platform:' . "\n\n" . implode("\n", $issues);
exit(104);
} }

View File

@ -17,5 +17,6 @@ if ($missingExtensions) {
} }
if ($issues) { if ($issues) {
die('Composer detected issues in your platform:' . "\n\n" . implode("\n", $issues)); echo 'Composer detected issues in your platform:' . "\n\n" . implode("\n", $issues);
exit(104);
} }

View File

@ -9,5 +9,6 @@ if (!(PHP_VERSION_ID >= 70200 && PHP_VERSION_ID < 99999)) {
} }
if ($issues) { if ($issues) {
die('Composer detected issues in your platform:' . "\n\n" . implode("\n", $issues)); echo 'Composer detected issues in your platform:' . "\n\n" . implode("\n", $issues);
exit(104);
} }

View File

@ -9,5 +9,6 @@ if (!(PHP_VERSION_ID >= 70208 && PHP_VERSION_ID < 80000)) {
} }
if ($issues) { if ($issues) {
die('Composer detected issues in your platform:' . "\n\n" . implode("\n", $issues)); echo 'Composer detected issues in your platform:' . "\n\n" . implode("\n", $issues);
exit(104);
} }

View File

@ -17,5 +17,6 @@ if ($missingExtensions) {
} }
if ($issues) { if ($issues) {
die('Composer detected issues in your platform:' . "\n\n" . implode("\n", $issues)); echo 'Composer detected issues in your platform:' . "\n\n" . implode("\n", $issues);
exit(104);
} }