Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] proxy 类生成错误 #6573

Open
SaylorZhu opened this issue Mar 7, 2024 · 5 comments
Open

[BUG] proxy 类生成错误 #6573

SaylorZhu opened this issue Mar 7, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@SaylorZhu
Copy link

Execute the command and paste the result below.

Command: uname -a && php -v && composer info | grep hyperf && php --ri swoole

Linux 517c963ed36c 5.15.49-linuxkit #1 SMP Tue Sep 13 07:51:46 UTC 2022 x86_64 Linux
PHP 8.2.13 (cli) (built: Nov 27 2023 22:54:17) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.13, Copyright (c) Zend Technologies
    with Zend OPcache v8.2.13, Copyright (c), by Zend Technologies
    with Xdebug v3.2.2, Copyright (c) 2002-2023, by Derick Rethans
96qbhy/hyperf-auth                 v3.1.2    hyperf 的 auth 组件
hyperf/amqp                        v3.1.9    A amqplib for hyperf.
hyperf/cache                       v3.1.0    A cache component for hyperf.
hyperf/code-parser                 v3.1.4    A code parser component for Hyperf.
hyperf/codec                       v3.1.4    A codec component for Hyperf.
hyperf/collection                  v3.1.6    Hyperf Collection package which come from illuminate/collections
hyperf/command                     v3.1.2    Command for hyperf
hyperf/conditionable               v3.1.0    Hyperf Macroable package which come from illuminate/conditionable
hyperf/config                      v3.1.2    An independent component that provides configuration container.
hyperf/context                     v3.1.0    A coroutine/application context library.
hyperf/contract                    v3.1.2    The contracts of Hyperf.
hyperf/coordinator                 v3.1.0    Hyperf Coordinator
hyperf/coroutine                   v3.1.1    Hyperf Coroutine
hyperf/database                    v3.1.5    A flexible database library.
hyperf/db-connection               v3.1.5    A hyperf db connection handler for hyperf/database.
hyperf/devtool                     v3.1.5    A Devtool for Hyperf.
hyperf/di                          v3.1.6    A DI for Hyperf.
hyperf/dispatcher                  v3.1.0    A HTTP Server for Hyperf.
hyperf/engine                      v2.10.4   Coroutine engine provided by swoole.
hyperf/engine-contract             v1.9.1    Contract for Coroutine Engine
hyperf/event                       v3.1.0    an event manager that implements PSR-14.
hyperf/exception-handler           v3.1.5    Exception handler for hyperf
hyperf/framework                   v3.1.0    A coroutine framework that focuses on hyperspeed and flexible, specifically use for build microservices and middlewares.
hyperf/guzzle                      v3.1.0    Swoole coroutine handler for guzzle
hyperf/http-message                v3.1.0    microservice framework base on swoole
hyperf/http-server                 v3.1.6    A HTTP Server for Hyperf.
hyperf/logger                      v3.1.0    A logger component for hyperf.
hyperf/macroable                   v3.1.0    Hyperf Macroable package which come from illuminate/macroable
hyperf/memory                      v3.1.0    An independent component that use to operate and manage memory.
hyperf/model-listener              v3.1.0    A model listener for Hyperf.
hyperf/paginator                   v3.1.2    A paginator component for hyperf.
hyperf/pipeline                    v3.1.0    Hyperf Macroable package which come from illuminate/pipeline
hyperf/pool                        v3.1.0    An independent universal connection pool component.
hyperf/process                     v3.1.0    A process component for hyperf.
hyperf/redis                       v3.1.0    A redis component for hyperf.
hyperf/resource                    v3.1.0    A api resource component for hyperf.
hyperf/serializer                  v3.1.0    A serializer component for Hyperf.
hyperf/server                      v3.1.2    A base server library for Hyperf.
hyperf/stdlib                      v3.1.0    A stdlib component for Hyperf.
hyperf/stringable                  v3.1.0    Hyperf Stringable package which come from illuminate/support
hyperf/support                     v3.1.0    A support component for Hyperf.
hyperf/tappable                    v3.1.0    Hyperf Macroable package which come from illuminate/tappable
hyperf/testing                     v3.1.3    Testing for hyperf
hyperf/translation                 v3.1.0    An independent translation component, forked by illuminate/translation.
hyperf/utils                       v3.1.0    A tools package that could help developer solved the problem quickly.
hyperf/validation                  v3.1.0    hyperf validation
hyperf/view                        v3.1.10   A view library for Hyperf.
hyperf/view-engine                 v3.1.10  

swoole

Swoole => enabled
Author => Swoole Team <team@swoole.com>
Version => 5.0.3
Built => Nov 29 2023 08:37:53
coroutine => enabled with boost asm context
epoll => enabled
eventfd => enabled
signalfd => enabled
spinlock => enabled
rwlock => enabled
sockets => enabled
openssl => OpenSSL 3.0.12 24 Oct 2023
dtls => enabled
http2 => enabled
json => enabled
curl-native => enabled
c-ares => 1.19.1
zlib => 1.2.13
brotli => E16777225/D16777225
mutex_timedlock => enabled
pthread_barrier => enabled
futex => enabled
async_redis => enabled

Directive => Local Value => Master Value
swoole.enable_coroutine => On => On
swoole.enable_library => On => On
swoole.enable_preemptive_scheduler => Off => Off
swoole.display_errors => On => On
swoole.use_shortname => Off => Off
swoole.unixsock_buffer_size => 8388608 => 8388608

Description:

Controller方法里面包含一个匿名类的定义时,生成的proxy类有问题。
f2de096b24551f0a30022a3c71cb530f

f313f24bae6e11ec83b4f10be124e267

Steps To Reproduce:

@SaylorZhu SaylorZhu added the bug Something isn't working label Mar 7, 2024
@huangdijia
Copy link
Member

只是 IDE 报错还是运行也报错?

@SaylorZhu
Copy link
Author

运行时会报错

只是 IDE 报错还是运行也报错?

@assert6
Copy link
Member

assert6 commented Mar 15, 2024

#6603

@assert6
Copy link
Member

assert6 commented Mar 15, 2024

无解,和之前的需求冲突了#2560

@assert6
Copy link
Member

assert6 commented Mar 15, 2024

你在Component 父类里随便Inject 注入个东西,就行了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants