Issue #3352367 by andypost: Fix Variable $graph might not be defined
parent
60f751eaab
commit
15881f46b9
|
@ -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'] ?? [];
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue