Skip to content

Commit 9e516c4

Browse files
committed
|| => &&
1 parent 1e3f922 commit 9e516c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function throwable_json_encode($throwable)
1313

1414
function throwable_encode($throwable)
1515
{
16-
if (!($throwable instanceof Exception) || !($throwable instanceof Throwable)) {
16+
if (!($throwable instanceof Exception) && !($throwable instanceof Throwable)) {
1717
throw new NotAThrowableException($throwable);
1818
}
1919

0 commit comments

Comments
 (0)