walkor 2 years ago
parent
commit
85599acb82
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Worker.php

+ 1 - 1
src/Worker.php

@@ -703,7 +703,7 @@ class Worker
             return;
         }
 
-        if (isset(static::$eventLoopClass)) {
+        if (!empty(static::$eventLoopClass)) {
             if (!is_subclass_of(static::$eventLoopClass, EventInterface::class)) {
                 throw new RuntimeException(sprintf('%s::$eventLoopClass must implement %s', static::class, EventInterface::class));
             }