Fix alias fake error (#1745)

* Add catch block in Alias::detectFake

* Update Alias unit tests
This commit is contained in:
WentTheFox
2025-12-10 10:09:42 +01:00
committed by GitHub
parent 9ef25f60e7
commit 12a0d7d54c
2 changed files with 41 additions and 0 deletions
+2
View File
@@ -256,6 +256,8 @@ class Alias
if ($fake !== $real) {
$this->addClass(get_class($fake));
}
} catch (Throwable $throwable) {
// Ignore error
} finally {
$facade::swap($real);
}