From 725711022be71c6fa2e7bc8f9648bf125986f027 Mon Sep 17 00:00:00 2001 From: Matthew Brown Date: Tue, 5 Mar 2019 04:24:51 -0500 Subject: [PATCH] Make autoload exception more specific (#777) This is a nice-to-have ([as I'm currently overriding it](https://github.com/psalm/laravel-psalm-plugin/commit/a700c89061d151d1c08851abd93d834f9183534d)), but might help other packages. --- src/Console/MetaCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Console/MetaCommand.php b/src/Console/MetaCommand.php index fe77e38..68b3e7f 100644 --- a/src/Console/MetaCommand.php +++ b/src/Console/MetaCommand.php @@ -135,7 +135,7 @@ class MetaCommand extends Command protected function registerClassAutoloadExceptions() { spl_autoload_register(function ($class) { - throw new \Exception("Class '$class' not found."); + throw new \ReflectionException("Class '$class' not found."); }); }