We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74b62f4 commit 238baddCopy full SHA for 238badd
src/Writer/PngWriter.php
@@ -22,7 +22,7 @@ public function write(QrCodeInterface $qrCode, ?LogoInterface $logo = null, ?Lab
22
$options[self::WRITER_OPTION_COMPRESSION_LEVEL] = -1;
23
}
24
25
- if (!isset($options[self::WRITER_OPTION_NUMBER_OF_COLORS])) {
+ if (!array_key_exists(self::WRITER_OPTION_NUMBER_OF_COLORS, $options)) {
26
// When a logo is present use true color, otherwise use a palette of 16 colors
27
$options[self::WRITER_OPTION_NUMBER_OF_COLORS] = $logo instanceof LogoInterface ? null : 16;
28
0 commit comments