Skip to content

Commit 2ef5f7d

Browse files
committed
Add catch block in Alias::detectFake
1 parent 9ef25f6 commit 2ef5f7d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Alias.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,8 @@ protected function detectFake()
256256
if ($fake !== $real) {
257257
$this->addClass(get_class($fake));
258258
}
259+
} catch (Throwable $throwable) {
260+
// Ignore error
259261
} finally {
260262
$facade::swap($real);
261263
}

0 commit comments

Comments
 (0)