mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-18 01:57:13 +00:00
Fix alias fake error (#1745)
* Add catch block in Alias::detectFake * Update Alias unit tests
This commit is contained in:
@@ -256,6 +256,8 @@ class Alias
|
||||
if ($fake !== $real) {
|
||||
$this->addClass(get_class($fake));
|
||||
}
|
||||
} catch (Throwable $throwable) {
|
||||
// Ignore error
|
||||
} finally {
|
||||
$facade::swap($real);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user