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

tp8 注解不对 #29

Open
iygwei opened this issue Sep 17, 2023 · 1 comment
Open

tp8 注解不对 #29

iygwei opened this issue Sep 17, 2023 · 1 comment

Comments

@iygwei
Copy link

iygwei commented Sep 17, 2023

#[Inject]
protected Cache $cache;

public function index()
{
    //...
}
这一块在tp8使用会报错

image
image

@yunwuxin
Copy link
Member

你在什么地方使用的 不能在构造方法里用

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants