walkor пре 2 година
родитељ
комит
85599acb82
1 измењених фајлова са 1 додато и 1 уклоњено
  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));
             }