Skip to content

Commit ab714f9

Browse files
committed
chore: method exception change to protected
1 parent 7f18dfe commit ab714f9

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/ErrorHandler.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ trait ErrorHandler
1010

1111
/**
1212
* Call function if roteted catch any Exception.
13-
*
14-
* @param callable $callable
15-
* @return self
1613
*/
1714
public function catch(callable $callable): self
1815
{
@@ -21,7 +18,7 @@ public function catch(callable $callable): self
2118
return $this;
2219
}
2320

24-
public function exception(Throwable $exception): self
21+
protected function exception(Throwable $exception): self
2522
{
2623
if ($this->catchCallable) {
2724
call_user_func($this->catchCallable, $exception);

0 commit comments

Comments
 (0)