Explorar o código

Update Worker.php

walkor %!s(int64=3) %!d(string=hai) anos
pai
achega
b12cc0156f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Worker.php

+ 1 - 1
src/Worker.php

@@ -2131,7 +2131,7 @@ class Worker
      * @param string $socket_name
      * @param array $context_option
      */
-    public function __construct(string $socket_name = '', array $context_option = [])
+    public function __construct(string $socket_name = null, array $context_option = [])
     {
         // Save all worker instances.
         $this->workerId = \spl_object_hash($this);