Skip to content

Commit 92184d9

Browse files
committed
fix: remove unnecessary checking
1 parent aa2913d commit 92184d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ExceptionHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function __construct(
3737
private array $runBeforeCallback = [],
3838
private array $runAfterCallback = []
3939
) {
40-
if ($callback && !is_callable($callback)) {
40+
if (!is_callable($callback)) {
4141
throw new NotCallableException();
4242
}
4343

0 commit comments

Comments
 (0)