Skip to content

Commit

Permalink
Make autoload exception more specific (#777)
Browse files Browse the repository at this point in the history
This is a nice-to-have ([as I'm currently overriding it](psalm/psalm-plugin-laravel@a700c89)), but might help other packages.
  • Loading branch information
muglug authored and barryvdh committed Mar 5, 2019
1 parent 881f771 commit 7257110
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Console/MetaCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ protected function getAbstracts()
protected function registerClassAutoloadExceptions()
{
spl_autoload_register(function ($class) {
throw new \Exception("Class '$class' not found.");
throw new \ReflectionException("Class '$class' not found.");
});
}

Expand Down

0 comments on commit 7257110

Please sign in to comment.