diff --git a/core/lib/Drupal/Core/DependencyInjection/Compiler/TaggedHandlersPass.php b/core/lib/Drupal/Core/DependencyInjection/Compiler/TaggedHandlersPass.php
index 9ebdaaa..66d056e 100644
--- a/core/lib/Drupal/Core/DependencyInjection/Compiler/TaggedHandlersPass.php
+++ b/core/lib/Drupal/Core/DependencyInjection/Compiler/TaggedHandlersPass.php
@@ -89,9 +89,6 @@ public function process(ContainerBuilder $container) {
         $accepts_priority = isset($params[1]) && $params[1]->getName() === 'priority';
 
         if (!isset($interface)) {
-          if ($container->getParameter('kernel.environment') === 'prod') {
-            continue;
-          }
           throw new LogicException(vsprintf("Service consumer '%s' class method %s::%s() has to type-hint an interface.", array(
             $consumer_id,
             $consumer->getClass(),
