diff --git a/core/lib/Drupal/Core/Datetime/Element/Datelist.php b/core/lib/Drupal/Core/Datetime/Element/Datelist.php
index 63e00e59918d2103eca089b358eb60c433720bfc..830bfde75f1c9fe5aef29826a2180d8d949a0e26 100644
--- a/core/lib/Drupal/Core/Datetime/Element/Datelist.php
+++ b/core/lib/Drupal/Core/Datetime/Element/Datelist.php
@@ -24,14 +24,13 @@ class Datelist extends DateElementBase {
    * {@inheritdoc}
    */
   public function getInfo() {
-    $class = static::class;
     return [
       '#input' => TRUE,
       '#element_validate' => [
-        [$class, 'validateDatelist'],
+        [static::class, 'validateDatelist'],
       ],
       '#process' => [
-        [$class, 'processDatelist'],
+        [static::class, 'processDatelist'],
       ],
       '#theme' => 'datetime_form',
       '#theme_wrappers' => ['datetime_wrapper'],
diff --git a/core/lib/Drupal/Core/Datetime/Element/Datetime.php b/core/lib/Drupal/Core/Datetime/Element/Datetime.php
index b6b40ab68827558c4cf1199aad3498ef42df6743..da56bb08427fef8ceccba2ff9ff1ae0151768338 100644
--- a/core/lib/Drupal/Core/Datetime/Element/Datetime.php
+++ b/core/lib/Drupal/Core/Datetime/Element/Datetime.php
@@ -42,22 +42,20 @@ public function getInfo() {
       }
     }
 
-    $class = static::class;
-
     // Note that since this information is cached, the #date_timezone property
     // is not set here, as this needs to vary potentially by-user.
     return [
       '#input' => TRUE,
       '#element_validate' => [
-        [$class, 'validateDatetime'],
+        [static::class, 'validateDatetime'],
       ],
       '#process' => [
-        [$class, 'processDatetime'],
-        [$class, 'processAjaxForm'],
-        [$class, 'processGroup'],
+        [static::class, 'processDatetime'],
+        [static::class, 'processAjaxForm'],
+        [static::class, 'processGroup'],
       ],
       '#pre_render' => [
-        [$class, 'preRenderGroup'],
+        [static::class, 'preRenderGroup'],
       ],
       '#theme' => 'datetime_form',
       '#theme_wrappers' => ['datetime_wrapper'],
diff --git a/core/lib/Drupal/Core/Entity/Element/EntityAutocomplete.php b/core/lib/Drupal/Core/Entity/Element/EntityAutocomplete.php
index be0632b031f4feff77237bc29feb3b48cb90056d..dd9ad04534def9ec384cd937d56422e5d7636096 100644
--- a/core/lib/Drupal/Core/Entity/Element/EntityAutocomplete.php
+++ b/core/lib/Drupal/Core/Entity/Element/EntityAutocomplete.php
@@ -72,7 +72,6 @@ class EntityAutocomplete extends Textfield {
    */
   public function getInfo() {
     $info = parent::getInfo();
-    $class = static::class;
 
     // Apply default form element properties.
     $info['#target_type'] = NULL;
@@ -88,8 +87,8 @@ public function getInfo() {
     // its value is properly checked for access.
     $info['#process_default_value'] = TRUE;
 
-    $info['#element_validate'] = [[$class, 'validateEntityAutocomplete']];
-    array_unshift($info['#process'], [$class, 'processEntityAutocomplete']);
+    $info['#element_validate'] = [[static::class, 'validateEntityAutocomplete']];
+    array_unshift($info['#process'], [static::class, 'processEntityAutocomplete']);
 
     return $info;
   }
diff --git a/core/lib/Drupal/Core/Render/Element/Actions.php b/core/lib/Drupal/Core/Render/Element/Actions.php
index 604ed6cacc46fe6c1f34a1c267d1636975d77ced..7f06f5dc9090ea9fdd96d0d308d0484ec043f87e 100644
--- a/core/lib/Drupal/Core/Render/Element/Actions.php
+++ b/core/lib/Drupal/Core/Render/Element/Actions.php
@@ -30,13 +30,12 @@ class Actions extends Container {
    * {@inheritdoc}
    */
   public function getInfo() {
-    $class = static::class;
     return [
       '#process' => [
         // @todo Move this to #pre_render.
-        [$class, 'preRenderActionsDropbutton'],
-        [$class, 'processActions'],
-        [$class, 'processContainer'],
+        [static::class, 'preRenderActionsDropbutton'],
+        [static::class, 'processActions'],
+        [static::class, 'processContainer'],
       ],
       '#weight' => 100,
       '#theme_wrappers' => ['container'],
diff --git a/core/lib/Drupal/Core/Render/Element/Button.php b/core/lib/Drupal/Core/Render/Element/Button.php
index 7e022e3dbe73050f2cd92feffee50ca2835b63ea..0aefec8dd7ec69860c628607977c830f25a057b5 100644
--- a/core/lib/Drupal/Core/Render/Element/Button.php
+++ b/core/lib/Drupal/Core/Render/Element/Button.php
@@ -36,7 +36,6 @@ class Button extends FormElementBase {
    * {@inheritdoc}
    */
   public function getInfo() {
-    $class = static::class;
     return [
       '#input' => TRUE,
       '#name' => 'op',
@@ -44,11 +43,11 @@ public function getInfo() {
       '#executes_submit_callback' => FALSE,
       '#limit_validation_errors' => FALSE,
       '#process' => [
-        [$class, 'processButton'],
-        [$class, 'processAjaxForm'],
+        [static::class, 'processButton'],
+        [static::class, 'processAjaxForm'],
       ],
       '#pre_render' => [
-        [$class, 'preRenderButton'],
+        [static::class, 'preRenderButton'],
       ],
       '#theme_wrappers' => ['input__submit'],
     ];
diff --git a/core/lib/Drupal/Core/Render/Element/Checkbox.php b/core/lib/Drupal/Core/Render/Element/Checkbox.php
index b758f26da739e657d5b1fbdf6a1bd1f3e8624bb1..65be5d22bf106195fe50894a7823f684f8cefe1b 100644
--- a/core/lib/Drupal/Core/Render/Element/Checkbox.php
+++ b/core/lib/Drupal/Core/Render/Element/Checkbox.php
@@ -29,18 +29,17 @@ class Checkbox extends FormElementBase {
    * {@inheritdoc}
    */
   public function getInfo() {
-    $class = static::class;
     return [
       '#input' => TRUE,
       '#return_value' => 1,
       '#process' => [
-        [$class, 'processCheckbox'],
-        [$class, 'processAjaxForm'],
-        [$class, 'processGroup'],
+        [static::class, 'processCheckbox'],
+        [static::class, 'processAjaxForm'],
+        [static::class, 'processGroup'],
       ],
       '#pre_render' => [
-        [$class, 'preRenderCheckbox'],
-        [$class, 'preRenderGroup'],
+        [static::class, 'preRenderCheckbox'],
+        [static::class, 'preRenderGroup'],
       ],
       '#theme' => 'input__checkbox',
       '#theme_wrappers' => ['form_element'],
diff --git a/core/lib/Drupal/Core/Render/Element/Checkboxes.php b/core/lib/Drupal/Core/Render/Element/Checkboxes.php
index 0cb852dac71d7f568a484c68e414508dd3a9f988..234f25aa904487466e4f50d834710478db70496d 100644
--- a/core/lib/Drupal/Core/Render/Element/Checkboxes.php
+++ b/core/lib/Drupal/Core/Render/Element/Checkboxes.php
@@ -42,14 +42,13 @@ class Checkboxes extends FormElementBase {
    * {@inheritdoc}
    */
   public function getInfo() {
-    $class = static::class;
     return [
       '#input' => TRUE,
       '#process' => [
-        [$class, 'processCheckboxes'],
+        [static::class, 'processCheckboxes'],
       ],
       '#pre_render' => [
-        [$class, 'preRenderCompositeFormElement'],
+        [static::class, 'preRenderCompositeFormElement'],
       ],
       '#theme_wrappers' => ['checkboxes'],
     ];
diff --git a/core/lib/Drupal/Core/Render/Element/Color.php b/core/lib/Drupal/Core/Render/Element/Color.php
index c620aef5dacdf028457e3e7db9ef4f7dc17b8ac0..254300d976f9b11c0871b3f607e76078819b7013 100644
--- a/core/lib/Drupal/Core/Render/Element/Color.php
+++ b/core/lib/Drupal/Core/Render/Element/Color.php
@@ -29,17 +29,16 @@ class Color extends FormElementBase {
    * {@inheritdoc}
    */
   public function getInfo() {
-    $class = static::class;
     return [
       '#input' => TRUE,
       '#process' => [
-        [$class, 'processAjaxForm'],
+        [static::class, 'processAjaxForm'],
       ],
       '#element_validate' => [
-        [$class, 'validateColor'],
+        [static::class, 'validateColor'],
       ],
       '#pre_render' => [
-        [$class, 'preRenderColor'],
+        [static::class, 'preRenderColor'],
       ],
       '#theme' => 'input__color',
       '#theme_wrappers' => ['form_element'],
diff --git a/core/lib/Drupal/Core/Render/Element/Container.php b/core/lib/Drupal/Core/Render/Element/Container.php
index dfb1bd63f9acd9d85f17a196f790818df6cc6ba9..d5a2092718e742454abf7d7ab416e2cda2cfd238 100644
--- a/core/lib/Drupal/Core/Render/Element/Container.php
+++ b/core/lib/Drupal/Core/Render/Element/Container.php
@@ -49,16 +49,15 @@ class Container extends RenderElementBase {
    * {@inheritdoc}
    */
   public function getInfo() {
-    $class = static::class;
     return [
       '#optional' => FALSE,
       '#process' => [
-        [$class, 'processGroup'],
-        [$class, 'processContainer'],
+        [static::class, 'processGroup'],
+        [static::class, 'processContainer'],
       ],
       '#pre_render' => [
-        [$class, 'preRenderGroup'],
-        [$class, 'preRenderContainer'],
+        [static::class, 'preRenderGroup'],
+        [static::class, 'preRenderContainer'],
       ],
       '#theme_wrappers' => ['container'],
     ];
diff --git a/core/lib/Drupal/Core/Render/Element/Date.php b/core/lib/Drupal/Core/Render/Element/Date.php
index 1a3c1ad540e1d02fff45c76b7c865623f1058a99..8304167ae70782ea9791bcf390354a38100a6589 100644
--- a/core/lib/Drupal/Core/Render/Element/Date.php
+++ b/core/lib/Drupal/Core/Render/Element/Date.php
@@ -40,14 +40,13 @@ class Date extends FormElementBase {
    * {@inheritdoc}
    */
   public function getInfo() {
-    $class = static::class;
     return [
       '#input' => TRUE,
       '#theme' => 'input__date',
       '#process' => [
-        [$class, 'processAjaxForm'],
+        [static::class, 'processAjaxForm'],
       ],
-      '#pre_render' => [[$class, 'preRenderDate']],
+      '#pre_render' => [[static::class, 'preRenderDate']],
       '#theme_wrappers' => ['form_element'],
       '#attributes' => ['type' => 'date'],
       '#date_date_format' => 'Y-m-d',
diff --git a/core/lib/Drupal/Core/Render/Element/Details.php b/core/lib/Drupal/Core/Render/Element/Details.php
index dccb8c2285163afe11a8e848fe315c747b110a24..28e7396887d8b3c6c673602a1b97eba364b09af8 100644
--- a/core/lib/Drupal/Core/Render/Element/Details.php
+++ b/core/lib/Drupal/Core/Render/Element/Details.php
@@ -42,18 +42,17 @@ class Details extends RenderElementBase {
    * {@inheritdoc}
    */
   public function getInfo() {
-    $class = static::class;
     return [
       '#open' => FALSE,
       '#summary_attributes' => [],
       '#value' => NULL,
       '#process' => [
-        [$class, 'processGroup'],
-        [$class, 'processAjaxForm'],
+        [static::class, 'processGroup'],
+        [static::class, 'processAjaxForm'],
       ],
       '#pre_render' => [
-        [$class, 'preRenderDetails'],
-        [$class, 'preRenderGroup'],
+        [static::class, 'preRenderDetails'],
+        [static::class, 'preRenderGroup'],
       ],
       '#theme_wrappers' => ['details'],
     ];
diff --git a/core/lib/Drupal/Core/Render/Element/Dropbutton.php b/core/lib/Drupal/Core/Render/Element/Dropbutton.php
index 87769c718d597ddb12f84e466339f511e125f172..20bb375ea879f32a4c1097aced634fbbf547af97 100644
--- a/core/lib/Drupal/Core/Render/Element/Dropbutton.php
+++ b/core/lib/Drupal/Core/Render/Element/Dropbutton.php
@@ -49,10 +49,9 @@ class Dropbutton extends RenderElementBase {
    * {@inheritdoc}
    */
   public function getInfo() {
-    $class = static::class;
     return [
       '#pre_render' => [
-        [$class, 'preRenderDropbutton'],
+        [static::class, 'preRenderDropbutton'],
       ],
       '#theme' => 'links__dropbutton',
     ];
diff --git a/core/lib/Drupal/Core/Render/Element/Email.php b/core/lib/Drupal/Core/Render/Element/Email.php
index fd721eb365761f64cbd134592824da7e611d4489..53ddd563bb68efb7c8c700aadf5dd24e89e706d3 100644
--- a/core/lib/Drupal/Core/Render/Element/Email.php
+++ b/core/lib/Drupal/Core/Render/Element/Email.php
@@ -45,22 +45,21 @@ class Email extends FormElementBase {
    * {@inheritdoc}
    */
   public function getInfo() {
-    $class = static::class;
     return [
       '#input' => TRUE,
       '#size' => 60,
       '#maxlength' => self::EMAIL_MAX_LENGTH,
       '#autocomplete_route_name' => FALSE,
       '#process' => [
-        [$class, 'processAutocomplete'],
-        [$class, 'processAjaxForm'],
-        [$class, 'processPattern'],
+        [static::class, 'processAutocomplete'],
+        [static::class, 'processAjaxForm'],
+        [static::class, 'processPattern'],
       ],
       '#element_validate' => [
-        [$class, 'validateEmail'],
+        [static::class, 'validateEmail'],
       ],
       '#pre_render' => [
-        [$class, 'preRenderEmail'],
+        [static::class, 'preRenderEmail'],
       ],
       '#theme' => 'input__email',
       '#theme_wrappers' => ['form_element'],
diff --git a/core/lib/Drupal/Core/Render/Element/Fieldset.php b/core/lib/Drupal/Core/Render/Element/Fieldset.php
index 1311e7899c559f5ebb2ff1836bb22daf5456e303..af0396789b39bfee7bb7f808bddfd67c620831cf 100644
--- a/core/lib/Drupal/Core/Render/Element/Fieldset.php
+++ b/core/lib/Drupal/Core/Render/Element/Fieldset.php
@@ -30,14 +30,13 @@ class Fieldset extends RenderElementBase {
    * {@inheritdoc}
    */
   public function getInfo() {
-    $class = static::class;
     return [
       '#process' => [
-        [$class, 'processGroup'],
-        [$class, 'processAjaxForm'],
+        [static::class, 'processGroup'],
+        [static::class, 'processAjaxForm'],
       ],
       '#pre_render' => [
-        [$class, 'preRenderGroup'],
+        [static::class, 'preRenderGroup'],
       ],
       '#value' => NULL,
       '#theme_wrappers' => ['fieldset'],
diff --git a/core/lib/Drupal/Core/Render/Element/File.php b/core/lib/Drupal/Core/Render/Element/File.php
index 6c745491f2a60efcf4323ad3696ded9e1acc794e..df50492a9ec4d6f4a207b00b9f90d35feff23eea 100644
--- a/core/lib/Drupal/Core/Render/Element/File.php
+++ b/core/lib/Drupal/Core/Render/Element/File.php
@@ -27,21 +27,20 @@ class File extends FormElementBase {
    * {@inheritdoc}
    */
   public function getInfo() {
-    $class = static::class;
     return [
       '#input' => TRUE,
       '#multiple' => FALSE,
       '#process' => [
-        [$class, 'processFile'],
+        [static::class, 'processFile'],
       ],
       '#size' => 60,
       '#pre_render' => [
-        [$class, 'preRenderFile'],
+        [static::class, 'preRenderFile'],
       ],
       '#theme' => 'input__file',
       '#theme_wrappers' => ['form_element'],
       '#value_callback' => [
-        [$class, 'valueCallback'],
+        [static::class, 'valueCallback'],
       ],
     ];
   }
diff --git a/core/lib/Drupal/Core/Render/Element/Hidden.php b/core/lib/Drupal/Core/Render/Element/Hidden.php
index 946f625635b81bbeeeae2e05892fbe8340891d82..db3b23a08cced0fcf51b8bfc7732485522dfced9 100644
--- a/core/lib/Drupal/Core/Render/Element/Hidden.php
+++ b/core/lib/Drupal/Core/Render/Element/Hidden.php
@@ -30,14 +30,13 @@ class Hidden extends FormElementBase {
    * {@inheritdoc}
    */
   public function getInfo() {
-    $class = static::class;
     return [
       '#input' => TRUE,
       '#process' => [
-        [$class, 'processAjaxForm'],
+        [static::class, 'processAjaxForm'],
       ],
       '#pre_render' => [
-        [$class, 'preRenderHidden'],
+        [static::class, 'preRenderHidden'],
       ],
       '#theme' => 'input__hidden',
     ];
diff --git a/core/lib/Drupal/Core/Render/Element/HtmlTag.php b/core/lib/Drupal/Core/Render/Element/HtmlTag.php
index cde78beb48c6480776890ada6f88ab5a1887797e..ac75f9aaf7568e74583a44ea8e72d43ef3be5c38 100644
--- a/core/lib/Drupal/Core/Render/Element/HtmlTag.php
+++ b/core/lib/Drupal/Core/Render/Element/HtmlTag.php
@@ -51,10 +51,9 @@ class HtmlTag extends RenderElementBase {
    * {@inheritdoc}
    */
   public function getInfo() {
-    $class = static::class;
     return [
       '#pre_render' => [
-        [$class, 'preRenderHtmlTag'],
+        [static::class, 'preRenderHtmlTag'],
       ],
       '#attributes' => [],
       '#value' => NULL,
diff --git a/core/lib/Drupal/Core/Render/Element/InlineTemplate.php b/core/lib/Drupal/Core/Render/Element/InlineTemplate.php
index 9ff9ace07061c07b91c5a5909b3d12ca3e701dd8..2003e1bfb2a7e8456fc2f79ee15de09a10919428 100644
--- a/core/lib/Drupal/Core/Render/Element/InlineTemplate.php
+++ b/core/lib/Drupal/Core/Render/Element/InlineTemplate.php
@@ -30,10 +30,9 @@ class InlineTemplate extends RenderElementBase {
    * {@inheritdoc}
    */
   public function getInfo() {
-    $class = static::class;
     return [
       '#pre_render' => [
-        [$class, 'preRenderInlineTemplate'],
+        [static::class, 'preRenderInlineTemplate'],
       ],
       '#template' => '',
       '#context' => [],
diff --git a/core/lib/Drupal/Core/Render/Element/Link.php b/core/lib/Drupal/Core/Render/Element/Link.php
index a64c5ed708ae001708372296334742a3c7c12727..8ee85654ce81f8ebe8ccb35cb1c3de4bdbb37aa9 100644
--- a/core/lib/Drupal/Core/Render/Element/Link.php
+++ b/core/lib/Drupal/Core/Render/Element/Link.php
@@ -34,10 +34,9 @@ class Link extends RenderElementBase {
    * {@inheritdoc}
    */
   public function getInfo() {
-    $class = static::class;
     return [
       '#pre_render' => [
-        [$class, 'preRenderLink'],
+        [static::class, 'preRenderLink'],
       ],
     ];
   }
diff --git a/core/lib/Drupal/Core/Render/Element/MachineName.php b/core/lib/Drupal/Core/Render/Element/MachineName.php
index 02b1fbff858be73c8e5e71cbe419486ee563ffd7..9eb9c10cc0fee2ae7b84f3f6c5e41440a83b1c0a 100644
--- a/core/lib/Drupal/Core/Render/Element/MachineName.php
+++ b/core/lib/Drupal/Core/Render/Element/MachineName.php
@@ -76,7 +76,6 @@ class MachineName extends Textfield {
    * {@inheritdoc}
    */
   public function getInfo() {
-    $class = static::class;
     return [
       '#input' => TRUE,
       '#default_value' => NULL,
@@ -85,15 +84,15 @@ public function getInfo() {
       '#size' => 60,
       '#autocomplete_route_name' => FALSE,
       '#process' => [
-        [$class, 'processMachineName'],
-        [$class, 'processAutocomplete'],
-        [$class, 'processAjaxForm'],
+        [static::class, 'processMachineName'],
+        [static::class, 'processAutocomplete'],
+        [static::class, 'processAjaxForm'],
       ],
       '#element_validate' => [
-        [$class, 'validateMachineName'],
+        [static::class, 'validateMachineName'],
       ],
       '#pre_render' => [
-        [$class, 'preRenderTextfield'],
+        [static::class, 'preRenderTextfield'],
       ],
       '#theme' => 'input__textfield',
       '#theme_wrappers' => ['form_element'],
diff --git a/core/lib/Drupal/Core/Render/Element/Number.php b/core/lib/Drupal/Core/Render/Element/Number.php
index 4c93dcc87002d38ea51a62f74ee38954e43a16ec..bfc356689369f57421240cb5caa2bcdb8ce7cf30 100644
--- a/core/lib/Drupal/Core/Render/Element/Number.php
+++ b/core/lib/Drupal/Core/Render/Element/Number.php
@@ -36,18 +36,17 @@ class Number extends FormElementBase {
    * {@inheritdoc}
    */
   public function getInfo() {
-    $class = static::class;
     return [
       '#input' => TRUE,
       '#step' => 1,
       '#process' => [
-        [$class, 'processAjaxForm'],
+        [static::class, 'processAjaxForm'],
       ],
       '#element_validate' => [
-        [$class, 'validateNumber'],
+        [static::class, 'validateNumber'],
       ],
       '#pre_render' => [
-        [$class, 'preRenderNumber'],
+        [static::class, 'preRenderNumber'],
       ],
       '#theme' => 'input__number',
       '#theme_wrappers' => ['form_element'],
diff --git a/core/lib/Drupal/Core/Render/Element/Password.php b/core/lib/Drupal/Core/Render/Element/Password.php
index 31edc5b978d9cc182db887b8fbf7ba2d22f09477..0c2e99d054b73758265afff62bdc3b778e741ca0 100644
--- a/core/lib/Drupal/Core/Render/Element/Password.php
+++ b/core/lib/Drupal/Core/Render/Element/Password.php
@@ -33,17 +33,16 @@ class Password extends FormElementBase {
    * {@inheritdoc}
    */
   public function getInfo() {
-    $class = static::class;
     return [
       '#input' => TRUE,
       '#size' => 60,
       '#maxlength' => 128,
       '#process' => [
-        [$class, 'processAjaxForm'],
-        [$class, 'processPattern'],
+        [static::class, 'processAjaxForm'],
+        [static::class, 'processPattern'],
       ],
       '#pre_render' => [
-        [$class, 'preRenderPassword'],
+        [static::class, 'preRenderPassword'],
       ],
       '#theme' => 'input__password',
       '#theme_wrappers' => ['form_element'],
diff --git a/core/lib/Drupal/Core/Render/Element/PasswordConfirm.php b/core/lib/Drupal/Core/Render/Element/PasswordConfirm.php
index 1190b981a4ef072aaae0d210bdb19cd80d14d0fa..3ca411682a533eceac31011062cf8d548a1a9ca5 100644
--- a/core/lib/Drupal/Core/Render/Element/PasswordConfirm.php
+++ b/core/lib/Drupal/Core/Render/Element/PasswordConfirm.php
@@ -32,12 +32,11 @@ class PasswordConfirm extends FormElementBase {
    * {@inheritdoc}
    */
   public function getInfo() {
-    $class = static::class;
     return [
       '#input' => TRUE,
       '#markup' => '',
       '#process' => [
-        [$class, 'processPasswordConfirm'],
+        [static::class, 'processPasswordConfirm'],
       ],
       '#theme_wrappers' => ['form_element'],
     ];
diff --git a/core/lib/Drupal/Core/Render/Element/PathElement.php b/core/lib/Drupal/Core/Render/Element/PathElement.php
index 11e86fb80a0857775856e014478782a4859bf012..fbe5621552eb2aa7406a950194d5260868fe3dd0 100644
--- a/core/lib/Drupal/Core/Render/Element/PathElement.php
+++ b/core/lib/Drupal/Core/Render/Element/PathElement.php
@@ -35,11 +35,10 @@ class PathElement extends Textfield {
    */
   public function getInfo() {
     $info = parent::getInfo();
-    $class = static::class;
     $info['#validate_path'] = TRUE;
     $info['#convert_path'] = self::CONVERT_ROUTE;
     $info['#element_validate'] = [
-      [$class, 'validateMatchedPath'],
+      [static::class, 'validateMatchedPath'],
     ];
     return $info;
   }
diff --git a/core/lib/Drupal/Core/Render/Element/Radio.php b/core/lib/Drupal/Core/Render/Element/Radio.php
index 159dcf34779cf7bbef0585ae3faaad3f5279f80a..e7c5771ec4c537b868a468bc075b082bda0df030 100644
--- a/core/lib/Drupal/Core/Render/Element/Radio.php
+++ b/core/lib/Drupal/Core/Render/Element/Radio.php
@@ -21,15 +21,14 @@ class Radio extends FormElementBase {
    * {@inheritdoc}
    */
   public function getInfo() {
-    $class = static::class;
     return [
       '#input' => TRUE,
       '#default_value' => NULL,
       '#process' => [
-        [$class, 'processAjaxForm'],
+        [static::class, 'processAjaxForm'],
       ],
       '#pre_render' => [
-        [$class, 'preRenderRadio'],
+        [static::class, 'preRenderRadio'],
       ],
       '#theme' => 'input__radio',
       '#theme_wrappers' => ['form_element'],
diff --git a/core/lib/Drupal/Core/Render/Element/Radios.php b/core/lib/Drupal/Core/Render/Element/Radios.php
index dfa2ebbaf9cc6292df4a228feacbcd6cb68b3fbb..79e9eb74185122a471fbeb7a3027f203d8deafa1 100644
--- a/core/lib/Drupal/Core/Render/Element/Radios.php
+++ b/core/lib/Drupal/Core/Render/Element/Radios.php
@@ -42,15 +42,14 @@ class Radios extends FormElementBase {
    * {@inheritdoc}
    */
   public function getInfo() {
-    $class = static::class;
     return [
       '#input' => TRUE,
       '#process' => [
-        [$class, 'processRadios'],
+        [static::class, 'processRadios'],
       ],
       '#theme_wrappers' => ['radios'],
       '#pre_render' => [
-        [$class, 'preRenderCompositeFormElement'],
+        [static::class, 'preRenderCompositeFormElement'],
       ],
     ];
   }
diff --git a/core/lib/Drupal/Core/Render/Element/Range.php b/core/lib/Drupal/Core/Render/Element/Range.php
index a27ceaa7c578cbdecb7e9574dac0aa881a8e54d3..0588dd5552301cfc71d0119a0da4a124bf69a2da 100644
--- a/core/lib/Drupal/Core/Render/Element/Range.php
+++ b/core/lib/Drupal/Core/Render/Element/Range.php
@@ -34,12 +34,11 @@ class Range extends Number {
    */
   public function getInfo() {
     $info = parent::getInfo();
-    $class = static::class;
     return [
       '#min' => 0,
       '#max' => 100,
       '#pre_render' => [
-        [$class, 'preRenderRange'],
+        [static::class, 'preRenderRange'],
       ],
       '#theme' => 'input__range',
     ] + $info;
diff --git a/core/lib/Drupal/Core/Render/Element/Search.php b/core/lib/Drupal/Core/Render/Element/Search.php
index 2c878b08c30664a58c66ef12366f6cd28a86bcd1..3c022c55e33b1786108c59500428b4533f012308 100644
--- a/core/lib/Drupal/Core/Render/Element/Search.php
+++ b/core/lib/Drupal/Core/Render/Element/Search.php
@@ -25,18 +25,17 @@ class Search extends FormElementBase {
    * {@inheritdoc}
    */
   public function getInfo() {
-    $class = static::class;
     return [
       '#input' => TRUE,
       '#size' => 60,
       '#maxlength' => 128,
       '#autocomplete_route_name' => FALSE,
       '#process' => [
-        [$class, 'processAutocomplete'],
-        [$class, 'processAjaxForm'],
+        [static::class, 'processAutocomplete'],
+        [static::class, 'processAjaxForm'],
       ],
       '#pre_render' => [
-        [$class, 'preRenderSearch'],
+        [static::class, 'preRenderSearch'],
       ],
       '#theme' => 'input__search',
       '#theme_wrappers' => ['form_element'],
diff --git a/core/lib/Drupal/Core/Render/Element/Select.php b/core/lib/Drupal/Core/Render/Element/Select.php
index 79a6a514057e7f14eb53c174bcb0c8f1e0217e87..9fcf6b52640b02d55edb8acc16a57a59cb3487f4 100644
--- a/core/lib/Drupal/Core/Render/Element/Select.php
+++ b/core/lib/Drupal/Core/Render/Element/Select.php
@@ -86,18 +86,17 @@ class Select extends FormElementBase {
    * {@inheritdoc}
    */
   public function getInfo() {
-    $class = static::class;
     return [
       '#input' => TRUE,
       '#multiple' => FALSE,
       '#sort_options' => FALSE,
       '#sort_start' => NULL,
       '#process' => [
-        [$class, 'processSelect'],
-        [$class, 'processAjaxForm'],
+        [static::class, 'processSelect'],
+        [static::class, 'processAjaxForm'],
       ],
       '#pre_render' => [
-        [$class, 'preRenderSelect'],
+        [static::class, 'preRenderSelect'],
       ],
       '#theme' => 'select',
       '#theme_wrappers' => ['form_element'],
diff --git a/core/lib/Drupal/Core/Render/Element/StatusReport.php b/core/lib/Drupal/Core/Render/Element/StatusReport.php
index 579a8c853ee817373027368c0804d994ab45986a..185afaf14e98315905c32ffee3b1f3aa7817ce82 100644
--- a/core/lib/Drupal/Core/Render/Element/StatusReport.php
+++ b/core/lib/Drupal/Core/Render/Element/StatusReport.php
@@ -14,7 +14,6 @@ class StatusReport extends RenderElementBase {
    * {@inheritdoc}
    */
   public function getInfo() {
-    $class = static::class;
     return [
       '#theme' => 'status_report_grouped',
       '#priorities' => [
@@ -24,7 +23,7 @@ public function getInfo() {
         'ok',
       ],
       '#pre_render' => [
-        [$class, 'preRenderGroupRequirements'],
+        [static::class, 'preRenderGroupRequirements'],
       ],
     ];
   }
diff --git a/core/lib/Drupal/Core/Render/Element/SystemCompactLink.php b/core/lib/Drupal/Core/Render/Element/SystemCompactLink.php
index bf209d85c680175006f28ce33493276d546f9607..6a7cf2e745d00b5d14c9746e9f38bba6bf711d01 100644
--- a/core/lib/Drupal/Core/Render/Element/SystemCompactLink.php
+++ b/core/lib/Drupal/Core/Render/Element/SystemCompactLink.php
@@ -24,11 +24,10 @@ class SystemCompactLink extends Link {
    * {@inheritdoc}
    */
   public function getInfo() {
-    $class = static::class;
     return [
       '#pre_render' => [
-        [$class, 'preRenderCompactLink'],
-        [$class, 'preRenderLink'],
+        [static::class, 'preRenderCompactLink'],
+        [static::class, 'preRenderLink'],
       ],
       '#theme_wrappers' => [
         'container' => [
diff --git a/core/lib/Drupal/Core/Render/Element/Table.php b/core/lib/Drupal/Core/Render/Element/Table.php
index 53767dc7cdd71b48a69cb50372dab6aff0271927..7421d2e566041266b47856d43a409e43e0e803a3 100644
--- a/core/lib/Drupal/Core/Render/Element/Table.php
+++ b/core/lib/Drupal/Core/Render/Element/Table.php
@@ -115,7 +115,6 @@ class Table extends FormElementBase {
    * {@inheritdoc}
    */
   public function getInfo() {
-    $class = static::class;
     return [
       '#header' => [],
       '#rows' => [],
@@ -129,10 +128,10 @@ public function getInfo() {
       '#multiple' => TRUE,
       '#js_select' => TRUE,
       '#process' => [
-        [$class, 'processTable'],
+        [static::class, 'processTable'],
       ],
       '#element_validate' => [
-        [$class, 'validateTable'],
+        [static::class, 'validateTable'],
       ],
       // Properties for tabledrag support.
       // The value is a list of arrays that are passed to
@@ -142,7 +141,7 @@ public function getInfo() {
       '#tabledrag' => [],
       // Render properties.
       '#pre_render' => [
-        [$class, 'preRenderTable'],
+        [static::class, 'preRenderTable'],
       ],
       '#theme' => 'table',
     ];
diff --git a/core/lib/Drupal/Core/Render/Element/Tableselect.php b/core/lib/Drupal/Core/Render/Element/Tableselect.php
index 4f188385b71f3c761a23effbbc851781941766f9..ff6e139bb07add45001354449682a2cc96ea8d6c 100644
--- a/core/lib/Drupal/Core/Render/Element/Tableselect.php
+++ b/core/lib/Drupal/Core/Render/Element/Tableselect.php
@@ -58,7 +58,6 @@ class Tableselect extends Table {
    * {@inheritdoc}
    */
   public function getInfo() {
-    $class = static::class;
     return [
       '#input' => TRUE,
       '#js_select' => TRUE,
@@ -66,11 +65,11 @@ public function getInfo() {
       '#responsive' => TRUE,
       '#sticky' => FALSE,
       '#pre_render' => [
-        [$class, 'preRenderTable'],
-        [$class, 'preRenderTableselect'],
+        [static::class, 'preRenderTable'],
+        [static::class, 'preRenderTableselect'],
       ],
       '#process' => [
-        [$class, 'processTableselect'],
+        [static::class, 'processTableselect'],
       ],
       '#options' => [],
       '#empty' => '',
diff --git a/core/lib/Drupal/Core/Render/Element/Tel.php b/core/lib/Drupal/Core/Render/Element/Tel.php
index 93ae0673a9ae6303b420815759bd74451d505c45..9d5951e7d4e66cfc83b2877f5186e96af427e6a6 100644
--- a/core/lib/Drupal/Core/Render/Element/Tel.php
+++ b/core/lib/Drupal/Core/Render/Element/Tel.php
@@ -33,19 +33,18 @@ class Tel extends FormElementBase {
    * {@inheritdoc}
    */
   public function getInfo() {
-    $class = static::class;
     return [
       '#input' => TRUE,
       '#size' => 30,
       '#maxlength' => 128,
       '#autocomplete_route_name' => FALSE,
       '#process' => [
-        [$class, 'processAutocomplete'],
-        [$class, 'processAjaxForm'],
-        [$class, 'processPattern'],
+        [static::class, 'processAutocomplete'],
+        [static::class, 'processAjaxForm'],
+        [static::class, 'processPattern'],
       ],
       '#pre_render' => [
-        [$class, 'preRenderTel'],
+        [static::class, 'preRenderTel'],
       ],
       '#theme' => 'input__tel',
       '#theme_wrappers' => ['form_element'],
diff --git a/core/lib/Drupal/Core/Render/Element/Textarea.php b/core/lib/Drupal/Core/Render/Element/Textarea.php
index 44f1e069282b8e9a6350b91e9d8c0cde2b7b5c02..e071c76c97c79ab7c20781ffb52606a7b811ab90 100644
--- a/core/lib/Drupal/Core/Render/Element/Textarea.php
+++ b/core/lib/Drupal/Core/Render/Element/Textarea.php
@@ -33,18 +33,17 @@ class Textarea extends FormElementBase {
    * {@inheritdoc}
    */
   public function getInfo() {
-    $class = static::class;
     return [
       '#input' => TRUE,
       '#cols' => 60,
       '#rows' => 5,
       '#resizable' => 'vertical',
       '#process' => [
-        [$class, 'processAjaxForm'],
-        [$class, 'processGroup'],
+        [static::class, 'processAjaxForm'],
+        [static::class, 'processGroup'],
       ],
       '#pre_render' => [
-        [$class, 'preRenderGroup'],
+        [static::class, 'preRenderGroup'],
       ],
       '#theme' => 'textarea',
       '#theme_wrappers' => ['form_element'],
diff --git a/core/lib/Drupal/Core/Render/Element/Textfield.php b/core/lib/Drupal/Core/Render/Element/Textfield.php
index 4fbc773c4a79772f922961d5d5f9445362c7a5fc..de144ab4348df6dfc0f502a6ba3a652a89004c87 100644
--- a/core/lib/Drupal/Core/Render/Element/Textfield.php
+++ b/core/lib/Drupal/Core/Render/Element/Textfield.php
@@ -42,21 +42,20 @@ class Textfield extends FormElementBase {
    * {@inheritdoc}
    */
   public function getInfo() {
-    $class = static::class;
     return [
       '#input' => TRUE,
       '#size' => 60,
       '#maxlength' => 128,
       '#autocomplete_route_name' => FALSE,
       '#process' => [
-        [$class, 'processAutocomplete'],
-        [$class, 'processAjaxForm'],
-        [$class, 'processPattern'],
-        [$class, 'processGroup'],
+        [static::class, 'processAutocomplete'],
+        [static::class, 'processAjaxForm'],
+        [static::class, 'processPattern'],
+        [static::class, 'processGroup'],
       ],
       '#pre_render' => [
-        [$class, 'preRenderTextfield'],
-        [$class, 'preRenderGroup'],
+        [static::class, 'preRenderTextfield'],
+        [static::class, 'preRenderGroup'],
       ],
       '#theme' => 'input__textfield',
       '#theme_wrappers' => ['form_element'],
diff --git a/core/lib/Drupal/Core/Render/Element/Token.php b/core/lib/Drupal/Core/Render/Element/Token.php
index 8db3c90342dffd50c0ec33526082c5b339d2f68e..ce3f1d66f24b6ec46d69f78c8e0dbba8d9d0bf09 100644
--- a/core/lib/Drupal/Core/Render/Element/Token.php
+++ b/core/lib/Drupal/Core/Render/Element/Token.php
@@ -20,11 +20,10 @@ class Token extends Hidden {
    * {@inheritdoc}
    */
   public function getInfo() {
-    $class = static::class;
     return [
       '#input' => TRUE,
       '#pre_render' => [
-        [$class, 'preRenderHidden'],
+        [static::class, 'preRenderHidden'],
       ],
       '#theme' => 'input__hidden',
     ];
diff --git a/core/lib/Drupal/Core/Render/Element/Url.php b/core/lib/Drupal/Core/Render/Element/Url.php
index 6d39d938a51cde6508c1403525897454c2220335..7fc2b2aed0333e8136f6a9bbecc7a6f72f51e8d1 100644
--- a/core/lib/Drupal/Core/Render/Element/Url.php
+++ b/core/lib/Drupal/Core/Render/Element/Url.php
@@ -35,22 +35,21 @@ class Url extends FormElementBase {
    * {@inheritdoc}
    */
   public function getInfo() {
-    $class = static::class;
     return [
       '#input' => TRUE,
       '#size' => 60,
       '#maxlength' => 255,
       '#autocomplete_route_name' => FALSE,
       '#process' => [
-        [$class, 'processAutocomplete'],
-        [$class, 'processAjaxForm'],
-        [$class, 'processPattern'],
+        [static::class, 'processAutocomplete'],
+        [static::class, 'processAjaxForm'],
+        [static::class, 'processPattern'],
       ],
       '#element_validate' => [
-        [$class, 'validateUrl'],
+        [static::class, 'validateUrl'],
       ],
       '#pre_render' => [
-        [$class, 'preRenderUrl'],
+        [static::class, 'preRenderUrl'],
       ],
       '#theme' => 'input__url',
       '#theme_wrappers' => ['form_element'],
diff --git a/core/lib/Drupal/Core/Render/Element/VerticalTabs.php b/core/lib/Drupal/Core/Render/Element/VerticalTabs.php
index eea7d9753ac0c657121a505ccdfcd2757a4c5f67..bf55119913b0aaad257355f662e45fe24fb9a6a7 100644
--- a/core/lib/Drupal/Core/Render/Element/VerticalTabs.php
+++ b/core/lib/Drupal/Core/Render/Element/VerticalTabs.php
@@ -53,14 +53,13 @@ class VerticalTabs extends RenderElementBase {
    * {@inheritdoc}
    */
   public function getInfo() {
-    $class = static::class;
     return [
       '#default_tab' => '',
       '#process' => [
-        [$class, 'processVerticalTabs'],
+        [static::class, 'processVerticalTabs'],
       ],
       '#pre_render' => [
-        [$class, 'preRenderVerticalTabs'],
+        [static::class, 'preRenderVerticalTabs'],
       ],
       '#theme_wrappers' => ['vertical_tabs', 'form_element'],
     ];
diff --git a/core/lib/Drupal/Core/Render/Element/Weight.php b/core/lib/Drupal/Core/Render/Element/Weight.php
index 012a996af60303e1090f3a3b93950668ca6fa7fd..89df69b1879f9958c176068412e26024b36ea807 100644
--- a/core/lib/Drupal/Core/Render/Element/Weight.php
+++ b/core/lib/Drupal/Core/Render/Element/Weight.php
@@ -32,14 +32,13 @@ class Weight extends FormElementBase {
    * {@inheritdoc}
    */
   public function getInfo() {
-    $class = static::class;
     return [
       '#input' => TRUE,
       '#delta' => 10,
       '#default_value' => 0,
       '#process' => [
-        [$class, 'processWeight'],
-        [$class, 'processAjaxForm'],
+        [static::class, 'processWeight'],
+        [static::class, 'processAjaxForm'],
       ],
     ];
   }
diff --git a/core/modules/contextual/src/Element/ContextualLinks.php b/core/modules/contextual/src/Element/ContextualLinks.php
index e13836dcb7d732232d9a29dda0b240e5e3dbdc5d..781b602b3ab54b7c8288a2760ae7caa7c02959bb 100644
--- a/core/modules/contextual/src/Element/ContextualLinks.php
+++ b/core/modules/contextual/src/Element/ContextualLinks.php
@@ -18,10 +18,9 @@ class ContextualLinks extends RenderElementBase {
    * {@inheritdoc}
    */
   public function getInfo() {
-    $class = static::class;
     return [
       '#pre_render' => [
-        [$class, 'preRenderLinks'],
+        [static::class, 'preRenderLinks'],
       ],
       '#theme' => 'links__contextual',
       '#links' => [],
diff --git a/core/modules/contextual/src/Element/ContextualLinksPlaceholder.php b/core/modules/contextual/src/Element/ContextualLinksPlaceholder.php
index b9fbcbedc020b06e413f9ce4c9186597ddf84917..2191bc38571c3382fdb6440de7d8f6500d2c8349 100644
--- a/core/modules/contextual/src/Element/ContextualLinksPlaceholder.php
+++ b/core/modules/contextual/src/Element/ContextualLinksPlaceholder.php
@@ -19,10 +19,9 @@ class ContextualLinksPlaceholder extends RenderElementBase {
    * {@inheritdoc}
    */
   public function getInfo() {
-    $class = static::class;
     return [
       '#pre_render' => [
-        [$class, 'preRenderPlaceholder'],
+        [static::class, 'preRenderPlaceholder'],
       ],
       '#id' => NULL,
     ];
diff --git a/core/modules/file/src/Element/ManagedFile.php b/core/modules/file/src/Element/ManagedFile.php
index 8abd25101478de154652b0b1b2be4096ff395f16..5fc3ae753eaaf9f21078c060b131abb1b537d68c 100644
--- a/core/modules/file/src/Element/ManagedFile.php
+++ b/core/modules/file/src/Element/ManagedFile.php
@@ -28,17 +28,16 @@ class ManagedFile extends FormElementBase {
    * {@inheritdoc}
    */
   public function getInfo() {
-    $class = static::class;
     return [
       '#input' => TRUE,
       '#process' => [
-        [$class, 'processManagedFile'],
+        [static::class, 'processManagedFile'],
       ],
       '#element_validate' => [
-        [$class, 'validateManagedFile'],
+        [static::class, 'validateManagedFile'],
       ],
       '#pre_render' => [
-        [$class, 'preRenderManagedFile'],
+        [static::class, 'preRenderManagedFile'],
       ],
       '#theme' => 'file_managed_file',
       '#theme_wrappers' => ['form_element'],
diff --git a/core/modules/filter/src/Element/ProcessedText.php b/core/modules/filter/src/Element/ProcessedText.php
index a9505799b68717c254fa364149bfdca3a353b06f..3b4d3c2d93d527edcf0194f3b5613a96f18f3471 100644
--- a/core/modules/filter/src/Element/ProcessedText.php
+++ b/core/modules/filter/src/Element/ProcessedText.php
@@ -21,14 +21,13 @@ class ProcessedText extends RenderElementBase {
    * {@inheritdoc}
    */
   public function getInfo() {
-    $class = static::class;
     return [
       '#text' => '',
       '#format' => NULL,
       '#filter_types_to_skip' => [],
       '#langcode' => '',
       '#pre_render' => [
-        [$class, 'preRenderText'],
+        [static::class, 'preRenderText'],
       ],
     ];
   }
diff --git a/core/modules/filter/src/Element/TextFormat.php b/core/modules/filter/src/Element/TextFormat.php
index fa18e2522b0701ca5646ffeb270f2fedd3e35909..d6bfb7cf881651d9d1001093c722a8b290d6ea5b 100644
--- a/core/modules/filter/src/Element/TextFormat.php
+++ b/core/modules/filter/src/Element/TextFormat.php
@@ -39,10 +39,9 @@ class TextFormat extends RenderElementBase {
    * {@inheritdoc}
    */
   public function getInfo() {
-    $class = static::class;
     return [
       '#process' => [
-        [$class, 'processFormat'],
+        [static::class, 'processFormat'],
       ],
       '#base_type' => 'textarea',
       '#theme_wrappers' => ['text_format_wrapper'],
diff --git a/core/modules/language/src/Element/LanguageConfiguration.php b/core/modules/language/src/Element/LanguageConfiguration.php
index 0f6ec33a792a43015703441d7db23c4823ceed43..4d991359f0d49aae85871fc225bfb5a28eabd6a6 100644
--- a/core/modules/language/src/Element/LanguageConfiguration.php
+++ b/core/modules/language/src/Element/LanguageConfiguration.php
@@ -18,12 +18,11 @@ class LanguageConfiguration extends FormElementBase {
    * {@inheritdoc}
    */
   public function getInfo() {
-    $class = static::class;
     return [
       '#input' => TRUE,
       '#tree' => TRUE,
       '#process' => [
-        [$class, 'processLanguageConfiguration'],
+        [static::class, 'processLanguageConfiguration'],
       ],
     ];
   }
diff --git a/core/modules/navigation/src/Element/TopBar.php b/core/modules/navigation/src/Element/TopBar.php
index c664f929c2242e142f014312c55817b29421b9c5..398fd083608e6dead92634e186d7ea29fb434314 100644
--- a/core/modules/navigation/src/Element/TopBar.php
+++ b/core/modules/navigation/src/Element/TopBar.php
@@ -19,10 +19,9 @@ class TopBar extends RenderElementBase {
    * {@inheritdoc}
    */
   public function getInfo(): array {
-    $class = static::class;
     return [
       '#pre_render' => [
-        [$class, 'preRenderTopBar'],
+        [static::class, 'preRenderTopBar'],
       ],
       '#theme' => 'top_bar',
       '#attached' => [
diff --git a/core/modules/system/src/Element/StatusReportPage.php b/core/modules/system/src/Element/StatusReportPage.php
index f10ecd79293aa6838af158c645ef711695248e68..361ec22bbea3225cdc17f2a25d385a13d90af272 100644
--- a/core/modules/system/src/Element/StatusReportPage.php
+++ b/core/modules/system/src/Element/StatusReportPage.php
@@ -17,13 +17,12 @@ class StatusReportPage extends RenderElementBase {
    * {@inheritdoc}
    */
   public function getInfo() {
-    $class = static::class;
     return [
       '#theme' => 'status_report_page',
       '#pre_render' => [
-        [$class, 'preRenderCounters'],
-        [$class, 'preRenderGeneralInfo'],
-        [$class, 'preRenderRequirements'],
+        [static::class, 'preRenderCounters'],
+        [static::class, 'preRenderGeneralInfo'],
+        [static::class, 'preRenderRequirements'],
       ],
     ];
   }
diff --git a/core/modules/toolbar/src/Element/Toolbar.php b/core/modules/toolbar/src/Element/Toolbar.php
index c29c3ca05bc879bda793fde15b6381f5fd92c46e..85a634b7d24acd80a7ef75283d9e205d20ca23f3 100644
--- a/core/modules/toolbar/src/Element/Toolbar.php
+++ b/core/modules/toolbar/src/Element/Toolbar.php
@@ -17,10 +17,9 @@ class Toolbar extends RenderElementBase {
    * {@inheritdoc}
    */
   public function getInfo() {
-    $class = static::class;
     return [
       '#pre_render' => [
-        [$class, 'preRenderToolbar'],
+        [static::class, 'preRenderToolbar'],
       ],
       '#theme' => 'toolbar',
       '#attached' => [
diff --git a/core/modules/toolbar/src/Element/ToolbarItem.php b/core/modules/toolbar/src/Element/ToolbarItem.php
index 4ac5ca9750ea7e34dbc41e229e3962d2dc507722..32bed9bbf78324c4d9d183d56a4f8f67e1f0948a 100644
--- a/core/modules/toolbar/src/Element/ToolbarItem.php
+++ b/core/modules/toolbar/src/Element/ToolbarItem.php
@@ -18,10 +18,9 @@ class ToolbarItem extends RenderElementBase {
    * {@inheritdoc}
    */
   public function getInfo() {
-    $class = static::class;
     return [
       '#pre_render' => [
-        [$class, 'preRenderToolbarItem'],
+        [static::class, 'preRenderToolbarItem'],
       ],
       'tab' => [
         '#type' => 'link',
diff --git a/core/modules/views/src/Element/View.php b/core/modules/views/src/Element/View.php
index a5ef48b9eaad745fc0cab45c44af5cb9b165f89f..96c2e77915ba0ad171996b412dd94d7fd7a1255f 100644
--- a/core/modules/views/src/Element/View.php
+++ b/core/modules/views/src/Element/View.php
@@ -17,10 +17,9 @@ class View extends RenderElementBase {
    * {@inheritdoc}
    */
   public function getInfo() {
-    $class = static::class;
     return [
       '#pre_render' => [
-        [$class, 'preRenderViewElement'],
+        [static::class, 'preRenderViewElement'],
       ],
       '#name' => NULL,
       '#display_id' => 'default',