We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
我在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); } 合并不会覆盖默认参数
return [ // 验证码字体大小(px) 'fontSize' => 18, // 是否画混淆曲线 'useCurve' => false, // 验证码图片高度 'imageH' => 34, // 验证码图片宽度 'imageW' => 30, // 验证码位数 'length' => 3 ];
public function __construct($config = []) { $this->config = array_merge($this->config, $config); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
我在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); }
合并不会覆盖默认参数
The text was updated successfully, but these errors were encountered: