diff --git a/core/lib/Drupal/Component/Transliteration/PhpTransliteration.php b/core/lib/Drupal/Component/Transliteration/PhpTransliteration.php
index 977892ddabf46eb31c0b2eb0d2d2fa6a65957ae7..3f1d9253da850e515e0c9f7d3c35adcaadd3788e 100644
--- a/core/lib/Drupal/Component/Transliteration/PhpTransliteration.php
+++ b/core/lib/Drupal/Component/Transliteration/PhpTransliteration.php
@@ -283,12 +283,10 @@ protected function readLanguageOverrides($langcode) {
 
     // Read in this file, which should set up a variable called $overrides,
     // which will be local to this function.
+    $overrides[$langcode] = [];
     if (is_file($file)) {
       include $file;
     }
-    if (!isset($overrides) || !is_array($overrides)) {
-      $overrides = [$langcode => []];
-    }
     $this->languageOverrides[$langcode] = $overrides[$langcode];
   }
 
@@ -311,14 +309,10 @@ protected function readGenericData($bank) {
 
     // Read in this file, which should set up a variable called $base, which
     // will be local to this function.
+    $base = [];
     if (is_file($file)) {
       include $file;
     }
-    if (!isset($base) || !is_array($base)) {
-      $base = [];
-    }
-
-    // Save this data.
     $this->genericMap[$bank] = $base;
   }
 
diff --git a/core/modules/color/color.module b/core/modules/color/color.module
index 8a8aa5e1b41c0bd40f3afae865c8c876fe9c9fc9..6d854eeff9e428bfe202d4ea29e1d6a51ded48f6 100644
--- a/core/modules/color/color.module
+++ b/core/modules/color/color.module
@@ -132,6 +132,7 @@ function color_get_info($theme) {
   $path = \Drupal::service('extension.list.theme')->getPath($theme);
   $file = \Drupal::root() . '/' . $path . '/color/color.inc';
   if ($path && file_exists($file)) {
+    $info = [];
     include $file;
     // Add in default values.
     $info += [
diff --git a/core/phpstan-baseline.neon b/core/phpstan-baseline.neon
index ed1f1e98a865f4b0cc8929fdfe42c39c8ef3c798..2e51d88f10e5f672bbce38168611b7cdf15f6a0d 100644
--- a/core/phpstan-baseline.neon
+++ b/core/phpstan-baseline.neon
@@ -20,16 +20,6 @@ parameters:
 			count: 1
 			path: includes/update.inc
 
-		-
-			message: "#^Undefined variable\\: \\$base$#"
-			count: 1
-			path: lib/Drupal/Component/Transliteration/PhpTransliteration.php
-
-		-
-			message: "#^Undefined variable\\: \\$overrides$#"
-			count: 1
-			path: lib/Drupal/Component/Transliteration/PhpTransliteration.php
-
 		-
 			message: "#^Call to method getDefinitions\\(\\) on an unknown class Drupal\\\\Core\\\\Plugin\\\\CategorizingPluginManagerTrait\\.$#"
 			count: 3
@@ -300,11 +290,6 @@ parameters:
 			count: 1
 			path: modules/ckeditor5/src/Controller/CKEditor5ImageController.php
 
-		-
-			message: "#^Undefined variable\\: \\$info$#"
-			count: 1
-			path: modules/color/color.module
-
 		-
 			message: "#^Call to deprecated constant REQUEST_TIME\\: Deprecated in drupal\\:8\\.3\\.0 and is removed from drupal\\:10\\.0\\.0\\. Use \\\\Drupal\\:\\:time\\(\\)\\-\\>getRequestTime\\(\\); $#"
 			count: 1