diff --git a/modules/setup/library/Setup/RequirementSet.php b/modules/setup/library/Setup/RequirementSet.php index 4c5bb121a..672fad454 100644 --- a/modules/setup/library/Setup/RequirementSet.php +++ b/modules/setup/library/Setup/RequirementSet.php @@ -290,7 +290,7 @@ class RequirementSet implements RecursiveIterator */ public function valid(): bool { - return $this->key() !== null; + return key($this->requirements) !== null; } /**