Skip to content

Commit c72e5c8

Browse files
committed
Phpstan level 4
1 parent da54398 commit c72e5c8

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/phpstan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ jobs:
2222
run: composer install --prefer-dist --no-progress --no-interaction
2323

2424
- name: Run analysis
25-
run: vendor/bin/phpstan analyse src --level 2
25+
run: vendor/bin/phpstan analyse src --level 4

src/Types/TypeCode128.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ public function getBarcodeData(string $code): Barcode
165165
$char_id = ord($char);
166166
if (($char_id >= 241) AND ($char_id <= 244)) {
167167
$code_data[] = $fnc_a[$char_id];
168-
} elseif (($char_id >= 0) AND ($char_id <= 95)) {
168+
} elseif ($char_id <= 95) {
169169
$code_data[] = strpos($keys_a, $char);
170170
} else {
171171
throw new InvalidCharacterException('Char ' . $char . ' is unsupported');

0 commit comments

Comments
 (0)