diff --git a/Operations/ScaffoldFileCollection.php b/Operations/ScaffoldFileCollection.php index a1bacf597d..c6e89ef4c7 100644 --- a/Operations/ScaffoldFileCollection.php +++ b/Operations/ScaffoldFileCollection.php @@ -115,8 +115,7 @@ protected function checkListHasItemWithContent(array $scaffold_files) { /** * {@inheritdoc} */ - #[\ReturnTypeWillChange] - public function getIterator() { + public function getIterator(): \ArrayIterator { return new \ArrayIterator($this->scaffoldFilesByProject); }