这是什么原因,是任务文件表达方式改变了吗?
class
文件是这样写的:
public function execute(): string{
}
`ArgumentCountError: Too few arguments to function yzh52521\Task\Mutex\RedisTaskMutex::__construct(), 0 passed in /temp/webman/vendor/workerman/webman-framework/src/Container.php on line 38 and exactly 1 expected in /temp/webman/vendor/yzh52521/webman-task/src/Mutex/RedisTaskMutex.php:17
Stack trace:
这是什么原因,是任务文件表达方式改变了吗? class 文件是这样写的: public function execute(): string{
}
`ArgumentCountError: Too few arguments to function yzh52521\Task\Mutex\RedisTaskMutex::__construct(), 0 passed in /temp/webman/vendor/workerman/webman-framework/src/Container.php on line 38 and exactly 1 expected in /temp/webman/vendor/yzh52521/webman-task/src/Mutex/RedisTaskMutex.php:17 Stack trace:
0 /temp/webman/vendor/workerman/webman-framework/src/Container.php(38): yzh52521\Task\Mutex\RedisTaskMutex->__construct()
1 /temp/webman/vendor/workerman/webman-framework/src/support/Container.php(45): Webman\Container->get()
2 /temp/webman/vendor/yzh52521/webman-task/src/Server.php(500): support\Container::__callStatic()
3 /temp/webman/vendor/yzh52521/webman-task/src/Server.php(463): yzh52521\Task\Server->getTaskMutex()
4 /temp/webman/vendor/yzh52521/webman-task/src/Server.php(489): yzh52521\Task\Server->runInSingleton()
5 /temp/webman/vendor/yzh52521/webman-task/src/Server.php(222): yzh52521\Task\Server->decorateRunnable()
6 /temp/webman/vendor/yzh52521/webman-task/src/Server.php(151): yzh52521\Task\Server->crontabRun()
7 /temp/webman/vendor/yzh52521/webman-task/src/Server.php(96): yzh52521\Task\Server->crontabInit()
8 /temp/webman/support/helpers.php(411): yzh52521\Task\Server->onWorkerStart()
9 /temp/webman/support/helpers.php(463): worker_bind()
10 /temp/webman/vendor/workerman/workerman/Worker.php(2454): {closure}()
11 /temp/webman/vendor/workerman/workerman/Worker.php(1578): Workerman\Worker->run()
12 /temp/webman/vendor/workerman/workerman/Worker.php(1420): Workerman\Worker::forkOneWorkerForLinux()
13 /temp/webman/vendor/workerman/workerman/Worker.php(1394): Workerman\Worker::forkWorkersForLinux()
14 /temp/webman/vendor/workerman/workerman/Worker.php(560): Workerman\Worker::forkWorkers()
15 /temp/webman/vendor/workerman/webman-framework/src/support/App.php(124): Workerman\Worker::runAll()
16 /temp/webman/vendor/webman/console/src/Commands/StartCommand.php(29): support\App::run()
17 /temp/webman/vendor/symfony/console/Command/Command.php(291): Webman\Console\Commands\StartCommand->execute()
18 /temp/webman/vendor/symfony/console/Application.php(1014): Symfony\Component\Console\Command\Command->run()
19 /temp/webman/vendor/symfony/console/Application.php(301): Symfony\Component\Console\Application->doRunCommand()
20 /temp/webman/vendor/symfony/console/Application.php(171): Symfony\Component\Console\Application->doRun()
21 /temp/webman/webman(45): Symfony\Component\Console\Application->run()
22 {main}
worker[plugin.yzh52521.task.cron_task:2672384] exit with status 64000`