walkor %!s(int64=2) %!d(string=hai) anos
pai
achega
85599acb82
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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));
             }