Skip to content

Commit 4bd841e

Browse files
committed
fix deprecated: strtoupper(): Passing null to parameter (#144)
1 parent 7df93b4 commit 4bd841e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Types/TypeCode128.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public function getBarcodeData(string $code): Barcode
156156
// length of the code
157157
$len = strlen($code);
158158

159-
switch (strtoupper($this->type)) {
159+
switch (strtoupper($this->type ?? "")) {
160160
case 'A':
161161
$startid = 103;
162162
for ($i = 0; $i < $len; ++$i) {

0 commit comments

Comments
 (0)