Run Rector on your code to see what it can do for you:
<?php interface BaseInterface
class MyClassB implements BaseInterface, \Stringable { + #[\Override] public function __toString(): string { return 'hello'; } + #[\Override] public function test(): void { $example = true; } }
Applied Rules:
Not a change you expect?
rector.php