Skip to content

Commit

Permalink
fixup! Refactor the ErrorHandler into a dynamic class
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
  • Loading branch information
ChristophWurst committed Jun 13, 2022
1 parent 90687e4 commit 66509ba
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
4 changes: 0 additions & 4 deletions lib/private/Log/ErrorHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion tests/lib/ErrorHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@

namespace Test;

use Error;
use OC\Log\ErrorHandler;
use OCP\ILogger;
use PHPUnit\Framework\MockObject\MockObject;
Expand Down

0 comments on commit 66509ba

Please sign in to comment.