mirror of
https://github.com/danog/psalm-plugin-laravel.git
synced 2024-11-26 20:34:48 +01:00
Catch even Throwable when trying to create class
If class require connection to database for creation for example getting state from there and saving to property. This break psalm anaylis currently. This case happen when CI environment does not have connection to database.
This commit is contained in:
parent
7524304c07
commit
e60d2b7752
@ -42,7 +42,7 @@ final class ContainerResolver
|
||||
// dynamic analysis to resolve the actual type from the container
|
||||
try {
|
||||
$concrete = ApplicationProvider::getApp()->make($abstract);
|
||||
} catch (BindingResolutionException | ReflectionException $e) {
|
||||
} catch (\Throwable $e) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user