AutoloadGenerator: Trigger native PHP error on platform checks fails
parent
6f1761fe18
commit
3f63bc9205
|
@ -734,10 +734,11 @@ EXT_CHECKS;
|
||||||
|
|
||||||
\$issues = array();
|
\$issues = array();
|
||||||
${requiredPhp}${requiredExtensions}
|
${requiredPhp}${requiredExtensions}
|
||||||
if (\$issues && !headers_sent()) {
|
if (\$issues) {
|
||||||
header('HTTP/1.1 500 Internal Server Error');
|
trigger_error(
|
||||||
echo 'Composer detected issues in your platform:' . "\\n\\n" . implode("\\n", \$issues) . "\\n\\n";
|
'Composer detected issues in your platform: ' . implode(', ', \$issues),
|
||||||
exit(104);
|
E_USER_ERROR
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
PLATFORM_CHECK;
|
PLATFORM_CHECK;
|
||||||
|
|
Loading…
Reference in New Issue