Fix deprecated syntax since PHP 8.2 (#10766)
parent
1cdc43d9de
commit
c27dca83ef
|
@ -889,7 +889,7 @@ EXT_CHECKS;
|
||||||
// platform_check.php @generated by Composer
|
// platform_check.php @generated by Composer
|
||||||
|
|
||||||
\$issues = array();
|
\$issues = array();
|
||||||
${requiredPhp}${requiredExtensions}
|
{$requiredPhp}{$requiredExtensions}
|
||||||
if (\$issues) {
|
if (\$issues) {
|
||||||
if (!headers_sent()) {
|
if (!headers_sent()) {
|
||||||
header('HTTP/1.1 500 Internal Server Error');
|
header('HTTP/1.1 500 Internal Server Error');
|
||||||
|
|
|
@ -363,7 +363,7 @@ class Problem
|
||||||
$providersStr = implode(array_map(function ($p) {
|
$providersStr = implode(array_map(function ($p) {
|
||||||
$description = $p['description'] ? ' '.substr($p['description'], 0, 100) : '';
|
$description = $p['description'] ? ' '.substr($p['description'], 0, 100) : '';
|
||||||
|
|
||||||
return " - ${p['name']}".$description."\n";
|
return ' - '.$p['name'].$description."\n";
|
||||||
}, count($providers) > $maxProviders + 1 ? array_slice($providers, 0, $maxProviders) : $providers));
|
}, count($providers) > $maxProviders + 1 ? array_slice($providers, 0, $maxProviders) : $providers));
|
||||||
if (count($providers) > $maxProviders + 1) {
|
if (count($providers) > $maxProviders + 1) {
|
||||||
$providersStr .= ' ... and '.(count($providers) - $maxProviders).' more.'."\n";
|
$providersStr .= ' ... and '.(count($providers) - $maxProviders).' more.'."\n";
|
||||||
|
|
Loading…
Reference in New Issue