These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | namespace Genesis; |
||
4 | |||
5 | class Exception extends \Exception {} |
||
6 | |||
7 | class ErrorException extends Exception {} |
||
1 ignored issue
–
show
|
|||
8 | |||
9 | class InvalidArgumentException extends Exception {} |
||
1 ignored issue
–
show
|
|||
10 | |||
11 | class NotSupportedException extends Exception {} |
||
1 ignored issue
–
show
|
|||
12 | |||
13 | class ContainerFactoryException extends Exception {} |
||
1 ignored issue
–
show
|
|||
14 | |||
15 | class MemberAccessException extends Exception {} |
||
1 ignored issue
–
show
|
Having each class in a dedicated file usually plays nice with PSR autoloaders and is therefore a well established practice. If you use other autoloaders, you might not want to follow this rule.