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

5.1RC3读取配置文件合并参数有问题 #19

Open
season886 opened this issue Nov 22, 2017 · 0 comments
Open

5.1RC3读取配置文件合并参数有问题 #19

season886 opened this issue Nov 22, 2017 · 0 comments

Comments

@season886
Copy link

我在config下建立captcha.php里面设置
return [ // 验证码字体大小(px) 'fontSize' => 18, // 是否画混淆曲线 'useCurve' => false, // 验证码图片高度 'imageH' => 34, // 验证码图片宽度 'imageW' => 30, // 验证码位数 'length' => 3 ];
结果debug了一下,发现会把所有的参数名变成小写,导致
public function __construct($config = []) { $this->config = array_merge($this->config, $config); }
合并不会覆盖默认参数

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