Verified Commit 15881f46 authored by Dave Long's avatar Dave Long
Browse files

Issue #3352367 by andypost: Fix Variable $graph might not be defined

parent 60f751ea
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -230,7 +230,7 @@ public function buildModuleDependencies(array $modules) {
        }
      }
    }
    $graph_object = new Graph($graph);
    $graph_object = new Graph($graph ?? []);
    $graph = $graph_object->searchAndSort();
    foreach ($graph as $module_name => $data) {
      $modules[$module_name]->required_by = $data['reverse_paths'] ?? [];
+0 −5
Original line number Diff line number Diff line
@@ -480,11 +480,6 @@ parameters:
			count: 1
			path: lib/Drupal/Core/Extension/ExtensionVersion.php

		-
			message: "#^Variable \\$graph might not be defined\\.$#"
			count: 1
			path: lib/Drupal/Core/Extension/ModuleHandler.php

		-
			message: "#^Variable \\$callback in isset\\(\\) always exists and is not nullable\\.$#"
			count: 1