Description
In some cases, we might have to override the parent method to narrow the type signature. Not doing so would be a PHP fatal error. That parent may be a vendored class so isn't itself alterable. Mago linter however emits a no-redundant-method-override and doesn't recognise that it's not redundant.
Playground Link
https://mago.carthage.software/1.45.0/en/playground/#019fcd5e-5d98-e41b-aba3-01149d1ed443
Reproduction
No response
Environment
Replicated on the playground.
Description
In some cases, we might have to override the parent method to narrow the type signature. Not doing so would be a PHP fatal error. That parent may be a vendored class so isn't itself alterable. Mago linter however emits a
no-redundant-method-overrideand doesn't recognise that it's not redundant.Playground Link
https://mago.carthage.software/1.45.0/en/playground/#019fcd5e-5d98-e41b-aba3-01149d1ed443
Reproduction
No response
Environment
Replicated on the playground.