mirror of
https://github.com/danog/psalm-plugin-laravel.git
synced 2024-11-30 04:39:01 +01:00
add typehinting according to the contract
This commit is contained in:
parent
08e9b38eac
commit
74347de247
@ -6,13 +6,11 @@ use Barryvdh\LaravelIdeHelper\Console\MetaCommand;
|
||||
|
||||
class FakeMetaCommand extends MetaCommand
|
||||
{
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
protected function registerClassAutoloadExceptions()
|
||||
protected function registerClassAutoloadExceptions(): callable
|
||||
{
|
||||
// by default, the ide-helper throws exceptions when it cannot find a class. However it does not unregister that
|
||||
// autoloader when it is done, and we certainly do not want to throw exceptions when we are simply checking if
|
||||
// a certain class exists. We are instead changing this to be a noop.
|
||||
return function () {};
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user