You should change the following <fg=red>- $collection->all()->each(function(Sheet $sheet) use ($sitemap) { </><fg=green>+ $collection->all()->each(function(Sheet $sheet) use ($sitemap): void { </>
You should change the following <fg=red>- $collection->all()->each(function(Sheet $sheet) use ($sitemap) { </><fg=green>+ $collection->all()->each(function (Sheet $sheet) use ($sitemap) { </>