Skip to content

Commit 244996f

Browse files
authored
fix Fatal error: Declaration of Workbunny\WebmanCoroutine\Utils\Worker\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
1 parent 852d010 commit 244996f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Utils/Worker/AbstractWorker.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
abstract class AbstractWorker extends Worker
1313
{
1414
/** @inheritDoc */
15-
protected static function initWorkers()
15+
protected static function initWorkers(): void
1616
{
1717
foreach (static::$_workers as $worker) {
1818
// 加载__init__开头的初始化方法

0 commit comments

Comments
 (0)