mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-21 02:30:13 +00:00
:octocat: expect array input
This commit is contained in:
@@ -250,10 +250,10 @@ trait QROptionsTrait{
|
||||
*
|
||||
* @throws \chillerlan\QRCode\QRCodeException
|
||||
*/
|
||||
protected function set_imageTransparencyBG($imageTransparencyBG):void{
|
||||
protected function set_imageTransparencyBG(array $imageTransparencyBG):void{
|
||||
|
||||
// invalid value - set to white as default
|
||||
if(!is_array($imageTransparencyBG) || count($imageTransparencyBG) < 3){
|
||||
if(count($imageTransparencyBG) < 3){
|
||||
$this->imageTransparencyBG = [255, 255, 255];
|
||||
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user