From 48e96ba301493d51deb2d1e41d82d7a175c5b85b Mon Sep 17 00:00:00 2001 From: Sukhwinder Dhillon Date: Tue, 3 May 2022 14:08:16 +0200 Subject: [PATCH] RequirementSet: Fix null returned instead int exception fixes #4767 --- modules/setup/library/Setup/RequirementSet.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } /**