@@ 54-56 (lines=3) @@ | ||
51 | * @throws InputException if $exception is not \Exception or \Throwable |
|
52 | */ |
|
53 | public static function fromException($exception, array $options=[]) { |
|
54 | if ($exception instanceof \Exception === false && $exception instanceof \Throwable === false) { |
|
55 | throw new InputException('input is not a real exception in php5 or php7'); |
|
56 | } |
|
57 | ||
58 | $options = array_merge(self::$defaults, $options); |
|
59 | ||
@@ 77-79 (lines=3) @@ | ||
74 | * @throws InputException if $exception is not \Exception or \Throwable |
|
75 | */ |
|
76 | public function addException($exception, array $options=[]) { |
|
77 | if ($exception instanceof \Exception === false && $exception instanceof \Throwable === false) { |
|
78 | throw new InputException('input is not a real exception in php5 or php7'); |
|
79 | } |
|
80 | ||
81 | $options = array_merge(self::$defaults, $options); |
|
82 |
@@ 72-74 (lines=3) @@ | ||
69 | * @throws InputException if $exception is not \Exception or \Throwable |
|
70 | */ |
|
71 | public static function fromException($exception, array $options=[]) { |
|
72 | if ($exception instanceof \Exception === false && $exception instanceof \Throwable === false) { |
|
73 | throw new InputException('input is not a real exception in php5 or php7'); |
|
74 | } |
|
75 | ||
76 | $options = array_merge(self::$defaults, $options); |
|
77 |