Run Rector on your code to see what it can do for you:
<?php declare(strict_types=1);
readonly class Foo extends FooBase implements FooInterface { + /** + * @return array<int, int> + */ #[Override] public function getCodes(): iterable {
]; } + /** + * @return array<int, string> + */ #[Override] public function getMethods(): iterable {
Applied Rules:
Not a change you expect?
rector.php