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 77157d2 commit d96798aCopy full SHA for d96798a
src/Types/TypeCodabar.php
@@ -43,11 +43,11 @@ public function getBarcodeData(string $code): Barcode
43
$code = 'A' . strtoupper($code) . 'A';
44
45
for ($i = 0; $i < strlen($code); ++$i) {
46
- if (! isset($this->conversionTable[$code[$i]])) {
+ if (! isset($this->conversionTable[(string)$code[$i]])) {
47
throw new InvalidCharacterException('Char ' . $code[$i] . ' is unsupported');
48
}
49
50
- $seq = $this->conversionTable[$code[$i]];
+ $seq = $this->conversionTable[(string)$code[$i]];
51
for ($j = 0; $j < 8; ++$j) {
52
if (($j % 2) == 0) {
53
$t = true; // bar
0 commit comments