1
0
Fork 0

Merge remote-tracking branch 'jakubboucek/feature/jb-platform-check-tigger-error'

pull/9418/head
Jordi Boggiano 2020-11-04 21:54:12 +01:00
commit ec960d12b0
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
7 changed files with 28 additions and 14 deletions

View File

@ -735,8 +735,10 @@ EXT_CHECKS;
\$issues = array();
${requiredPhp}${requiredExtensions}
if (\$issues) {
echo 'Composer detected issues in your platform:' . "\\n\\n" . implode("\\n", \$issues) . "\\n\\n";
exit(104);
trigger_error(
'Composer detected issues in your platform: ' . implode(', ', \$issues),
E_USER_ERROR
);
}
PLATFORM_CHECK;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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