Skip to content

Commit 0ba1c79

Browse files
authored
Merge pull request #183 from SamuelNitsche/develop
Fix creating a transparent qr code
2 parents 88924b9 + 853eda8 commit 0ba1c79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Generator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ public function getFill(): Fill
533533
*/
534534
public function createColor(int $red, int $green, int $blue, ?int $alpha = null): ColorInterface
535535
{
536-
if (! $alpha) {
536+
if (is_null($alpha)) {
537537
return new Rgb($red, $green, $blue);
538538
}
539539

0 commit comments

Comments
 (0)