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

Workerman version:4.1.14+PHP version:8.1.1安装后报错. #8

Open
xx273 opened this issue Jan 23, 2024 · 3 comments
Open

Workerman version:4.1.14+PHP version:8.1.1安装后报错. #8

xx273 opened this issue Jan 23, 2024 · 3 comments

Comments

@xx273
Copy link

xx273 commented Jan 23, 2024

Fatal error: Type of plugin\msg\app\validate\Msg::$rule must be array (as in class Tinywan\Validate\Validate) in /Users/xx/Sites/webman/plugin/msg/app/validate/Msg.php on line 5
Worker[40000] process terminated with ERROR: E_COMPILE_ERROR "Type of plugin\msg\app\validate\Msg::$rule must be array (as in class Tinywan\Validate\Validate) in /Users/xx/Sites/webman/plugin/msg/app/validate/Msg.php on line 5"
属性前面加array后报场景错误
Error: Typed property Tinywan\Validate\Validate::$currentScene must not be accessed before initialization in /Users/xx/Sites/webman/vendor/tinywan/validate/src/Validate.php:439

Stack trace:

#0 /Users/xx/Sites/webman/plugin/msg/app/controller/apiController.php(33): Tinywan\Validate\Validate->check(Array)

@xx273
Copy link
Author

xx273 commented Jan 23, 2024

image 应该是写法不兼容php8

@xx273
Copy link
Author

xx273 commented Jan 23, 2024

unique方法也用不了的

@Tinywan
Copy link
Owner

Tinywan commented Jan 23, 2024

你可以提交PR

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