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

merge-requests/2747/merge
Dave Long 2023-04-12 14:19:17 +01:00
parent 60f751eaab
commit 15881f46b9
No known key found for this signature in database
GPG Key ID: ED52AE211E142771
2 changed files with 1 additions and 6 deletions

View File

@ -230,7 +230,7 @@ class ModuleHandler implements ModuleHandlerInterface {
}
}
}
$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'] ?? [];

View File

@ -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