mirror of
https://github.com/danog/psalm-plugin-laravel.git
synced 2025-01-22 21:31:21 +01:00
Merge pull request #141 from yaegassy/add-not-stopping-support
Added support for not stopping the execution of psalm even when a error occurs.
This commit is contained in:
commit
e6e34b75cc
@ -25,17 +25,18 @@ class Plugin implements PluginEntryPointInterface
|
||||
|
||||
public function __invoke(RegistrationInterface $registration, ?SimpleXMLElement $config = null) : void
|
||||
{
|
||||
$app = ApplicationHelper::bootApp();
|
||||
try {
|
||||
$app = ApplicationHelper::bootApp();
|
||||
$fake_filesystem = new FakeFilesystem();
|
||||
$view_factory = $this->getViewFactory($app, $fake_filesystem);
|
||||
$cache_dir = __DIR__ . DIRECTORY_SEPARATOR . 'cache' . DIRECTORY_SEPARATOR;
|
||||
|
||||
$fake_filesystem = new FakeFilesystem();
|
||||
|
||||
$view_factory = $this->getViewFactory($app, $fake_filesystem);
|
||||
|
||||
$cache_dir = __DIR__ . DIRECTORY_SEPARATOR . 'cache' . DIRECTORY_SEPARATOR;
|
||||
|
||||
$this->ingestFacadeStubs($registration, $app, $fake_filesystem, $view_factory, $cache_dir);
|
||||
$this->ingestMetaStubs($registration, $app, $fake_filesystem, $view_factory, $cache_dir);
|
||||
$this->ingestModelStubs($registration, $app, $fake_filesystem, $cache_dir);
|
||||
$this->ingestFacadeStubs($registration, $app, $fake_filesystem, $view_factory, $cache_dir);
|
||||
$this->ingestMetaStubs($registration, $app, $fake_filesystem, $view_factory, $cache_dir);
|
||||
$this->ingestModelStubs($registration, $app, $fake_filesystem, $cache_dir);
|
||||
} catch (\Throwable $t) {
|
||||
return;
|
||||
}
|
||||
|
||||
require_once 'ReturnTypeProvider/AuthReturnTypeProvider.php';
|
||||
$registration->registerHooksFromClass(ReturnTypeProvider\AuthReturnTypeProvider::class);
|
||||
|
Loading…
x
Reference in New Issue
Block a user