diff --git a/core/modules/system/system.install b/core/modules/system/system.install index 5b198e0..851aefc 100644 --- a/core/modules/system/system.install +++ b/core/modules/system/system.install @@ -142,19 +142,19 @@ function system_requirements($phase) { ]; if (function_exists('phpinfo')) { if ($phase === 'runtime') { - $requirements['php']['description'][] = [ - '#markup' => t('For more information view the PHP configuration.', ['@link' => (new Url('system.php'))->toString()]), + $requirements['php']['description'] = [ + '#markup' => t('For more information view the PHP configuration.', ['@url' => (new Url('system.php'))->toString()]), ]; } } else { - $requirements['php']['description'][] = [ + $requirements['php']['description'] = [ '#markup' => t('The phpinfo() function has been disabled for security reasons. To see your server\'s phpinfo() information, change your PHP settings or contact your server administrator. For more information, Enabling and disabling phpinfo() handbook page.', ['@phpinfo' => 'https://www.drupal.org/node/243993']), ]; } if (version_compare($phpversion, DRUPAL_MINIMUM_PHP) < 0) { - $requirements['php']['description'][] = [ + $requirements['php']['description'] = [ '#markup' => t('Your PHP installation is too old. Drupal requires at least PHP %version.', ['%version' => DRUPAL_MINIMUM_PHP]), ]; $requirements['php']['severity'] = REQUIREMENT_ERROR; @@ -166,7 +166,7 @@ function system_requirements($phase) { // statements. if (($phase === 'install' || \Drupal::database()->driver() === 'mysql') && !SystemRequirements::phpVersionWithPdoDisallowMultipleStatements($phpversion)) { $requirements['php']['title'] = t('PHP (multiple statement disabling)'); - $requirements['php']['description'][] = [ + $requirements['php']['description'] = [ '#markup' => t('PHP versions higher than 5.6.5 or 5.5.21 provide built-in SQL injection protection for mysql databases. It is recommended to update.'), ]; }