-
-
Save dshafik/b3e40188629c0d4be593 to your computer and use it in GitHub Desktop.
This file contains 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 | |
namespace My\Library; | |
interface MyPackageException extends \Throwable { | |
public function someMethod(); | |
public function someOtherMethod(); | |
} | |
class MyException extends \Exception implements \My\Library\MyPackageException { | |
} | |
?> | |
Fatal error: Class My\Library\MyException contains 2 abstract methods and must therefore be declared | |
abstract or implement the remaining methods (My\Library\MyPackageException::someMethod, | |
My\Library\MyPackageException::someOtherMethod) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment