RequirementSet: Fix null returned instead int exception

fixes #4767
This commit is contained in:
Sukhwinder Dhillon 2022-05-03 14:08:16 +02:00
parent cee12fd6a5
commit 48e96ba301
1 changed files with 1 additions and 1 deletions

View File

@ -290,7 +290,7 @@ class RequirementSet implements RecursiveIterator
*/
public function valid(): bool
{
return $this->key() !== null;
return key($this->requirements) !== null;
}
/**