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.
2 parents 938fd4e + 9e773e1 commit afbbebfCopy full SHA for afbbebf
src/Types/TypeCode11.php
@@ -91,7 +91,7 @@ private function getCheckDigitK(string $code): string
91
92
$p = 1;
93
$check = 0;
94
- for ($i = strlen($code); $i >= 0; --$i) {
+ for ($i = (strlen($code) - 1); $i >= 0; --$i) {
95
$digit = $code[$i];
96
if ($digit == '-') {
97
$dval = 10;
0 commit comments