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

php8.2 兼容问题 #106

Open
jackchang1025 opened this issue Oct 18, 2023 · 0 comments
Open

php8.2 兼容问题 #106

jackchang1025 opened this issue Oct 18, 2023 · 0 comments

Comments

@jackchang1025
Copy link

1. 在 PHP 8.2.x 中,要求方法的返回类型必须与接口或父类中定义的返回类型一致,因此在 think\migration\Factory 类中的 offsetExists 方法中显式指定返回类型。这样可以确保方法的返回类型与 ArrayAccess 接口的要求一致

image

在 think\migration\Factory 类中 修改
image

2. fzaninotto/faker 扩展包已经停止更新了并且不支持 php8.x ,建议可以使用 akerphp/faker

希望能修复这个问题,现在我是在本地直接修改扩展包代码,另外我也想贡献我的代码,是直接fock 然后修改提交嘛?

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

1 participant