diff --git a/tests/php/Logging/MonologErrorHandlerTest.php b/tests/php/Logging/MonologErrorHandlerTest.php
index 1384e4fdb8e..75affeceb78 100644
--- a/tests/php/Logging/MonologErrorHandlerTest.php
+++ b/tests/php/Logging/MonologErrorHandlerTest.php
@@ -6,6 +6,7 @@
 use Psr\Log\LoggerInterface;
 use SilverStripe\Dev\SapphireTest;
 use SilverStripe\Logging\MonologErrorHandler;
+use SilverStripe\Dev\Deprecation;
 
 class MonologErrorHandlerTest extends SapphireTest
 {