mirror of
https://github.com/danog/psalm-plugin-laravel.git
synced 2024-11-30 04:39:01 +01:00
Configure Psalm to ignore MissingFile in ApplicationProvider
The error was intriduced by Psalm 4.21 as it now resolves __DIR__. It's recommended [1] to ignore the error if it happens despite an existence check for the file. [1] https://github.com/vimeo/psalm/issues/3886#issuecomment-663585426
This commit is contained in:
parent
f6193ad5cb
commit
48c1425c86
@ -52,6 +52,7 @@ final class ApplicationProvider
|
||||
}
|
||||
|
||||
if (file_exists($applicationPath = __DIR__ . '/../../../../bootstrap/app.php')) { // Applications
|
||||
/** @psalm-suppress MissingFile file is checked for existence */
|
||||
$app = require $applicationPath;
|
||||
} elseif (file_exists($applicationPath = getcwd() . '/bootstrap/app.php')) { // Local Dev
|
||||
$app = require $applicationPath;
|
||||
|
Loading…
Reference in New Issue
Block a user