Quellcode durchsuchen

Merge pull request #1069 from joanhey/patch-1

Update Worker.php fix nullable for PHP8.4
walkor vor 1 Jahr
Ursprung
Commit
fe10fdb533
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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);