Created
May 12, 2024 10:16
-
-
Save andipyk/17edc4dedd933eb6d6c0959773fc8ffe to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
interface ObsoleteInterface { | |
public function oldMethod(); | |
} | |
class ModernClass implements ObsoleteInterface { | |
#[\Override] | |
public function oldMethod() { | |
// Method implementation, marked as override to signal intended compliance with the deprecated interface. | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment