Typehint Throwable
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
4077f16aec
commit
83eb548d23
|
@ -331,7 +331,7 @@ class Log implements ILogger {
|
|||
* @return void
|
||||
* @since 8.2.0
|
||||
*/
|
||||
public function logException($exception, array $context = []) {
|
||||
public function logException(\Throwable $exception, array $context = []) {
|
||||
$level = Util::ERROR;
|
||||
if (isset($context['level'])) {
|
||||
$level = $context['level'];
|
||||
|
|
|
@ -144,5 +144,5 @@ interface ILogger {
|
|||
* @return void
|
||||
* @since 8.2.0
|
||||
*/
|
||||
public function logException($exception, array $context = []);
|
||||
public function logException(\Throwable $exception, array $context = []);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue