Skip to content
Snippets Groups Projects
Commit 2d128fc0 authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#203794 by douggreen: nonexistent dependencies should not be considered on the dependency checker

parent d0940351
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -178,7 +178,7 @@ function _module_build_dependencies($files) { ...@@ -178,7 +178,7 @@ function _module_build_dependencies($files) {
if (isset($file->info['dependencies']) && is_array($file->info['dependencies'])) { if (isset($file->info['dependencies']) && is_array($file->info['dependencies'])) {
foreach ($file->info['dependencies'] as $dependency_name) { foreach ($file->info['dependencies'] as $dependency_name) {
// This is a nonexistent module. // This is a nonexistent module.
if ($dependency_name == '-circular-') { if ($dependency_name == '-circular-' || !isset($files[$dependency_name])) {
continue; continue;
} }
// $dependency_name is module B (again, see doxygen). // $dependency_name is module B (again, see doxygen).
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment