Skip to content

Commit

Permalink
* Added check of whether $upce_code is set.
Browse files Browse the repository at this point in the history
* * This fixes failing PHPStan action.
  • Loading branch information
Bernhard-Krop committed Apr 16, 2024
1 parent eb1cbcc commit af3782f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Types/TypeEanUpcBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ public function getBarcodeData(string $code): Barcode
];

$seq = '101'; // left guard bar
if ($this->upce) {
if ($this->upce && isset ($upce_code)) {
$barcode = new Barcode($upce_code);
$p = $upce_parities[$code[1]][$checksumDigit];
for ($i = 0; $i < 6; ++$i) {
Expand Down

0 comments on commit af3782f

Please sign in to comment.