Make sure platform-check returns a non-0 exit code if it fails
parent
f34ec13253
commit
d494df61ff
|
@ -660,7 +660,8 @@ if (!(PHP_VERSION_ID $lowestOperator $lowestPhpVersionId && PHP_VERSION_ID $high
|
|||
}
|
||||
$requiredExtensions
|
||||
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;
|
||||
|
|
|
@ -9,5 +9,6 @@ if (!(PHP_VERSION_ID >= 70200 && PHP_VERSION_ID < 80000)) {
|
|||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
|
|
@ -9,5 +9,6 @@ if (!(PHP_VERSION_ID >= 0 && PHP_VERSION_ID < 80000)) {
|
|||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
|
|
@ -17,5 +17,6 @@ if ($missingExtensions) {
|
|||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
|
|
@ -9,5 +9,6 @@ if (!(PHP_VERSION_ID >= 70200 && PHP_VERSION_ID < 99999)) {
|
|||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
|
|
@ -9,5 +9,6 @@ if (!(PHP_VERSION_ID >= 70208 && PHP_VERSION_ID < 80000)) {
|
|||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
|
|
@ -17,5 +17,6 @@ if ($missingExtensions) {
|
|||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue