소스 검색

Merge pull request #1069 from joanhey/patch-1

Update Worker.php fix nullable for PHP8.4
walkor 1 년 전
부모
커밋
fe10fdb533
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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);