Skip to content

Instantly share code, notes, and snippets.

@dshafik
Last active August 29, 2015 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dshafik/b3e40188629c0d4be593 to your computer and use it in GitHub Desktop.
Save dshafik/b3e40188629c0d4be593 to your computer and use it in GitHub Desktop.
<?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