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));
             }