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;