Explorar el Código

Update Worker.php fix nullable for PHP8.4

Joan Miquel hace 1 año
padre
commit
91c4207e14
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/Worker.php

+ 1 - 1
src/Worker.php

@@ -2281,7 +2281,7 @@ class Worker
      * @param string|null $socketName
      * @param array $socketContext
      */
-    public function __construct(string $socketName = null, array $socketContext = [])
+    public function __construct(?string $socketName = null, array $socketContext = [])
     {
         // Save all worker instances.
         $this->workerId = spl_object_hash($this);