Throw a ReflectionException that can be caught by Psalm

This commit is contained in:
Matthew Brown 2019-03-04 13:37:34 -05:00 committed by GitHub
parent 81d92207ed
commit a700c89061
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,4 @@
<?php
namespace Psalm\LaravelPlugin;
class FakeMetaCommand extends \Barryvdh\LaravelIdeHelper\Console\MetaCommand
@ -8,5 +7,8 @@ class FakeMetaCommand extends \Barryvdh\LaravelIdeHelper\Console\MetaCommand
* @return void
*/
protected function registerClassAutoloadExceptions() {
spl_autoload_register(function ($class) {
throw new \ReflectionException("Class '$class' not found.");
});
}
}