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