Skip to content

Commit 853eda8

Browse files
Fix creating a qr code with 0% alpha
1 parent 88924b9 commit 853eda8

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)