mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
Typehint Throwable
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
4077f16aec
commit
83eb548d23
2 changed files with 2 additions and 2 deletions
|
|
@ -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 a new issue