Skip to content

Commit

Permalink
fix Fatal error: Declaration of Workbunny\WebmanCoroutine\Utils\Worke…
Browse files Browse the repository at this point in the history
…r\AbstractWorker::initWorkers() must be compatible with Workerman\Worker::initWorkers(): void

support workerman 5.x:
fix Fatal error: Declaration of Workbunny\WebmanCoroutine\Utils\Worker\AbstractWorker::initWorkers() must be compatible with Workerman\Worker::initWorkers(): void
  • Loading branch information
chaz6chez authored Dec 20, 2024
1 parent 852d010 commit 244996f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Utils/Worker/AbstractWorker.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
abstract class AbstractWorker extends Worker
{
/** @inheritDoc */
protected static function initWorkers()
protected static function initWorkers(): void
{
foreach (static::$_workers as $worker) {
// 加载__init__开头的初始化方法
Expand Down

0 comments on commit 244996f

Please sign in to comment.