webman annotation 注解插件报错

muvtou

问题描述

程序开启后报错

程序代码

use app\common\middleware\AdminAuthMiddleware;
use LinFly\Annotation\Route\Middleware;

#[
    Middleware(middlewares: AdminAuthMiddleware::class, only: ['get','post'])
]
class UserController extends SystemController
{

报错信息

worker[plugin.webman.redis-queue.consumer:10657] exit with status 64000
worker[webman:10985] exit with status 9
[Process:plugin.webman.redis-queue.consumer] Start scan annotations...[Process:webman] Start scan annotations...[Process:plugin.webman.redis-queue.consumer] Start scan annotations...[Process:webman] Start scan annotations...worker[webman:11008] exit with status 9
worker[webman:11009] exit with status 9
[Process:webman] Start scan annotations...[Process:webman] Start scan annotations...worker[webman:11010] exit with status 9
worker[webman:11021] exit with status 9
worker[webman:11140] exit with status 9
worker[webman:11399] exit with status 9
[Process:webman] Start scan annotations...[Process:plugin.webman.redis-queue.consumer] Start scan annotations...[Process:webman] Start scan annotations...[Process:plugin.webman.redis-queue.consumer] Start scan annotations...[Process:webman] Start scan annotations...worker[webman:11462] exit with status 9
worker[webman:11483] exit with status 9
Error: Call to undefined method ReturnTypeWillChange::setArguments() in /wwwroot/www/webman3/vendor/linfly/annotation/src/Annotation.php:543
Stack trace:
#0 /wwwroot/www/webman3/vendor/linfly/annotation/src/Annotation.php(412): LinFly\Annotation\Annotation::reflectionAttributeToAnnotation()
#1 /wwwroot/www/webman3/vendor/linfly/annotation/src/Annotation.php(289): LinFly\Annotation\Annotation::buildScanAnnotationItems()
#2 /wwwroot/www/webman3/vendor/linfly/annotation/src/Annotation.php(515): LinFly\Annotation\Annotation::LinFly\Annotation\{closure}()
#3 /wwwroot/www/webman3/vendor/linfly/annotation/src/Annotation.php(290): LinFly\Annotation\Annotation::cache()
#4 /wwwroot/www/webman3/vendor/linfly/annotation/src/Annotation.php(184): LinFly\Annotation\Annotation::getMethodAnnotations()
#5 /wwwroot/www/webman3/vendor/linfly/annotation/src/Annotation.php(103): LinFly\Annotation\Annotation::yieldParseClassAnnotations()
#6 /wwwroot/www/webman3/vendor/linfly/annotation/src/Bootstrap/AnnotationBootstrap.php(87): LinFly\Annotation\Annotation::parseAnnotations()
#7 /wwwroot/www/webman3/support/bootstrap.php(102): LinFly\Annotation\Bootstrap\AnnotationBootstrap::start()
#8 /wwwroot/www/webman3/support/helpers.php(455): require_once('...')
#9 /wwwroot/www/webman3/vendor/workerman/workerman/Worker.php(2454): {closure}()
#10 /wwwroot/www/webman3/vendor/workerman/workerman/Worker.php(1578): Workerman\Worker->run()
#11 /wwwroot/www/webman3/vendor/workerman/workerman/Worker.php(1420): Workerman\Worker::forkOneWorkerForLinux()
#12 /wwwroot/www/webman3/vendor/workerman/workerman/Worker.php(1394): Workerman\Worker::forkWorkersForLinux()
#13 /wwwroot/www/webman3/vendor/workerman/workerman/Worker.php(1724): Workerman\Worker::forkWorkers()
#14 /wwwroot/www/webman3/vendor/workerman/workerman/Worker.php(1664): Workerman\Worker::monitorWorkersForLinux()
#15 /wwwroot/www/webman3/vendor/workerman/workerman/Worker.php(562): Workerman\Worker::monitorWorkers()
#16 /wwwroot/www/webman3/vendor/workerman/webman-framework/src/support/App.php(124): Workerman\Worker::runAll()
#17 /wwwroot/www/webman3/bin(4): support\App::run()
#18 {main}
worker[plugin.webman.redis-queue.consumer:10796] exit with status 64000
[Process:webman] Start scan annotations...worker[webman:11518] exit with status 9

截图报错信息里报错文件相关代码

操作系统及workerman/webman等框架组件具体版本

centos7.9
php:8.1.9

1003 1 0
1个回答

静默

得给 https://github.com/imlinfly/webman-annotation 发issue,linfly/annotation 作者不一定能看到社区的帖子

年代过于久远,无法发表回答
×
🔝