Resolve #3441067 "Deprecated function creation"
Compare changes
@@ -48,7 +48,7 @@ function at_color_scheme_form_submit($form, FormStateInterface $form_state) {
@@ -60,9 +60,9 @@ function at_color_scheme_form_submit($form, FormStateInterface $form_state) {
\Drupal::messenger()->addMessage(t('There is not enough memory available to PHP to change this theme\'s color scheme. You need at least %size more. Check the <a href=":php_url">PHP documentation</a> for more information.', [':php_url' => 'http://php.net/manual/ini.core.php#ini.sect.resource-limits', '%size' => format_size($usage + $required - $size)]), 'error');
\Drupal::messenger()->addMessage(t('There is not enough memory available to PHP to change this theme\'s color scheme. You need at least %size more. Check the <a href=":php_url">PHP documentation</a> for more information.', [':php_url' => 'http://php.net/manual/ini.core.php#ini.sect.resource-limits', '%size' => \Drupal\Component\Utility\DeprecationHelper::backwardsCompatibleCall(\Drupal::VERSION, '10.2.0', fn() => \\Drupal\Core\StringTranslation\ByteSizeMarkup::create($usage + $required - $size), fn() => format_size($usage + $required - $size))]), 'error');
@@ -95,7 +95,7 @@ function at_color_scheme_form_submit($form, FormStateInterface $form_state) {