Skip to content

Commit 54a29e4

Browse files
committed
Optimize reportIf
1 parent 926690b commit 54a29e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ExceptionNotifyManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function __construct(Container $container)
6363

6464
public function reportIf($condition, Throwable $e)
6565
{
66-
$condition and $this->report($e);
66+
value($condition) and $this->report($e);
6767
}
6868

6969
public function report(Throwable $e)

0 commit comments

Comments
 (0)