From 66509ba9f2d4cfc2a9cff536538d4285cda27042 Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Mon, 13 Jun 2022 16:11:59 +0200 Subject: [PATCH] fixup! Refactor the ErrorHandler into a dynamic class Signed-off-by: Christoph Wurst --- lib/private/Log/ErrorHandler.php | 4 ---- tests/lib/ErrorHandlerTest.php | 1 - 2 files changed, 5 deletions(-) diff --git a/lib/private/Log/ErrorHandler.php b/lib/private/Log/ErrorHandler.php index 7b596ba7f832d..c4b9631e75ac7 100644 --- a/lib/private/Log/ErrorHandler.php +++ b/lib/private/Log/ErrorHandler.php @@ -30,14 +30,10 @@ */ namespace OC\Log; -use Closure; use Error; use OCP\ILogger; use Psr\Log\LoggerInterface; use Throwable; -use function register_shutdown_function; -use function set_error_handler; -use function set_exception_handler; class ErrorHandler { private LoggerInterface $logger; diff --git a/tests/lib/ErrorHandlerTest.php b/tests/lib/ErrorHandlerTest.php index 22d123443e857..f6bf850f0b5de 100644 --- a/tests/lib/ErrorHandlerTest.php +++ b/tests/lib/ErrorHandlerTest.php @@ -25,7 +25,6 @@ namespace Test; -use Error; use OC\Log\ErrorHandler; use OCP\ILogger; use PHPUnit\Framework\MockObject\MockObject;