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

参数未指定默认值,PHP7下报错 #13

Open
hzdok opened this issue May 20, 2019 · 0 comments
Open

参数未指定默认值,PHP7下报错 #13

hzdok opened this issue May 20, 2019 · 0 comments

Comments

@hzdok
Copy link

hzdok commented May 20, 2019

https://github.com/72crm/72crm/blob/58d446279867ab3f5f171fc2173bbd5fa438cfbb/application/admin/model/File.php#L32
参数未指定默认值,PHP7下报错(php毕竟不会停留在5.6)
源代码:public function createData($files, $param, $x = '150', $y = '150')
建議修改為:public function createData($files='', $param=[], $x = '150', $y = '150')

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