From 041d0e38e297e0b9d840b6d7a5f5fc13b0ae3b61 Mon Sep 17 00:00:00 2001 From: Nicolas CARPi Date: Fri, 9 Dec 2022 19:36:47 +0100 Subject: [PATCH] fix bacon construct signature --- lib/Providers/Qr/BaconQrCodeProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Providers/Qr/BaconQrCodeProvider.php b/lib/Providers/Qr/BaconQrCodeProvider.php index 4174e08..5ad7ac7 100644 --- a/lib/Providers/Qr/BaconQrCodeProvider.php +++ b/lib/Providers/Qr/BaconQrCodeProvider.php @@ -20,7 +20,7 @@ class BaconQrCodeProvider implements IQRCodeProvider /** * Ensure we using the latest Bacon QR Code and specify default options */ - public function __construct(private int $borderWidth = 4, private string $backgroundColour = '#ffffff', private string $foregroundColour = '#000000', private string $format = 'png') + public function __construct(private int $borderWidth = 4, private string|array $backgroundColour = '#ffffff', private string|array $foregroundColour = '#000000', private string $format = 'png') { if (!class_exists(ImagickImageBackEnd::class)) { throw new RuntimeException('Make sure you are using version 2 of Bacon QR Code');