AutoloadGenerator: Trigger native PHP error on platform checks fails - tests
parent
3f63bc9205
commit
2595de07ce
|
@ -8,8 +8,9 @@ if (!(PHP_VERSION_ID >= 70200)) {
|
||||||
$issues[] = 'Your Composer dependencies require a PHP version ">= 7.2.0". You are running ' . PHP_VERSION . '.';
|
$issues[] = 'Your Composer dependencies require a PHP version ">= 7.2.0". You are running ' . PHP_VERSION . '.';
|
||||||
}
|
}
|
||||||
|
|
||||||
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
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,8 +12,9 @@ if ($missingExtensions) {
|
||||||
$issues[] = 'Your Composer dependencies require the following PHP extensions to be installed: ' . implode(', ', $missingExtensions);
|
$issues[] = 'Your Composer dependencies require the following PHP extensions to be installed: ' . implode(', ', $missingExtensions);
|
||||||
}
|
}
|
||||||
|
|
||||||
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
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,8 +8,9 @@ if (!(PHP_VERSION_ID >= 70200)) {
|
||||||
$issues[] = 'Your Composer dependencies require a PHP version ">= 7.2.0". You are running ' . PHP_VERSION . '.';
|
$issues[] = 'Your Composer dependencies require a PHP version ">= 7.2.0". You are running ' . PHP_VERSION . '.';
|
||||||
}
|
}
|
||||||
|
|
||||||
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
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,8 +11,9 @@ if ($missingExtensions) {
|
||||||
$issues[] = 'Your Composer dependencies require the following PHP extensions to be installed: ' . implode(', ', $missingExtensions);
|
$issues[] = 'Your Composer dependencies require the following PHP extensions to be installed: ' . implode(', ', $missingExtensions);
|
||||||
}
|
}
|
||||||
|
|
||||||
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
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,8 +8,9 @@ if (!(PHP_VERSION_ID >= 70208)) {
|
||||||
$issues[] = 'Your Composer dependencies require a PHP version ">= 7.2.8". You are running ' . PHP_VERSION . '.';
|
$issues[] = 'Your Composer dependencies require a PHP version ">= 7.2.8". You are running ' . PHP_VERSION . '.';
|
||||||
}
|
}
|
||||||
|
|
||||||
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
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,8 +16,9 @@ if ($missingExtensions) {
|
||||||
$issues[] = 'Your Composer dependencies require the following PHP extensions to be installed: ' . implode(', ', $missingExtensions);
|
$issues[] = 'Your Composer dependencies require the following PHP extensions to be installed: ' . implode(', ', $missingExtensions);
|
||||||
}
|
}
|
||||||
|
|
||||||
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
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue