diff --git a/core/modules/system/system.install b/core/modules/system/system.install index 83a6a25..badb347 100644 --- a/core/modules/system/system.install +++ b/core/modules/system/system.install @@ -7,6 +7,7 @@ use Drupal\Component\Utility\Crypt; use Drupal\Component\Utility\Environment; +use Drupal\Component\Utility\SafeMarkup; use Drupal\Core\Url; use Drupal\Core\Database\Database; use Drupal\Core\DrupalKernel; @@ -137,9 +138,7 @@ function system_requirements($phase) { if (function_exists('phpinfo')) { // $phpversion is safe and output of l() is safe, so this value is safe. if ($phase === 'runtime') { - $phpversion_label = [ - '#markup' => $phpversion . ' (' . \Drupal::l(t('more information'), new Url('system.php')) . ')', - ]; + $phpversion_label = SafeMarkup::set($phpversion . ' (' . \Drupal::l(t('more information'), new Url('system.php')) . ')'); } $requirements['php'] = array( 'title' => t('PHP'),