diff --git a/src/Lazy.php b/src/Lazy.php
index 91b4e33815fd67dfb14bc5f3ebc5a3faa5e6ba86..52774b9d72a3a1d47527a364d97ed413809ea883 100644
--- a/src/Lazy.php
+++ b/src/Lazy.php
@@ -4,7 +4,7 @@ namespace Drupal\lazy;
 
 use Drupal\Core\Condition\ConditionManager;
 use Drupal\Core\Config\ConfigFactoryInterface;
-use Drupal\Core\Extension\ModuleHandler;
+use Drupal\Core\Extension\ModuleHandlerInterface;
 use Drupal\Core\Routing\AdminContext;
 use Symfony\Component\HttpFoundation\RequestStack;
 
@@ -46,7 +46,7 @@ class Lazy implements LazyInterface {
   /**
    * The module manager.
    *
-   * @var \Drupal\Core\Extension\ModuleHandler
+   * @var \Drupal\Core\Extension\ModuleHandlerInterface
    */
   protected $moduleHandler;
 
@@ -61,7 +61,7 @@ class Lazy implements LazyInterface {
    *   The condition plugins manager.
    * @param \Drupal\Core\Routing\AdminContext $admin_context
    *   The route admin context service.
-   * @param \Drupal\Core\Extension\ModuleHandler $module_handler
+   * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler
    *   The module manager.
    */
   public function __construct(
@@ -69,7 +69,7 @@ class Lazy implements LazyInterface {
     RequestStack $request_stack,
     ConditionManager $condition_manager,
     AdminContext $admin_context,
-    ModuleHandler $module_handler
+    ModuleHandlerInterface $module_handler
   ) {
     $this->lazySettings = $config_factory->get('lazy.settings')->get();
     $this->requestStack = $request_stack->getCurrentRequest();