We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e3f922 commit 9e516c4Copy full SHA for 9e516c4
src/functions.php
@@ -13,7 +13,7 @@ function throwable_json_encode($throwable)
13
14
function throwable_encode($throwable)
15
{
16
- if (!($throwable instanceof Exception) || !($throwable instanceof Throwable)) {
+ if (!($throwable instanceof Exception) && !($throwable instanceof Throwable)) {
17
throw new NotAThrowableException($throwable);
18
}
19
0 commit comments