Skip to content

Commit 296b521

Browse files
Avoid deprecated SplObjectStorage::attach (#224)
`SplObjectStorage::attach()` was deprecated with PHP 8.5 [1]. Its usage is replaced by `SplObjectStorage::offsetSet()`, which provides the same functionality. [1]: php/php-src#19424
1 parent 321b45a commit 296b521

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Worker/ContextWorkerPool.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ private function pull(): Worker
256256
throw new WorkerException('Worker factory did not create a viable worker');
257257
}
258258

259-
$workers->attach($worker, 0);
259+
$workers->offsetSet($worker, 0);
260260
return $worker;
261261
});
262262

0 commit comments

Comments
 (0)