Skip to content

Commit

Permalink
Changes for PHP 5.6 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaasuni committed Oct 20, 2023
1 parent 0ca30ed commit 6d7cb18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Barcode.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public function getBarcodeObj(
$params = explode(',', $type);
$type = array_shift($params);

if (empty(self::TYPECLASS[$type])) {
if (!array_key_exists($type, self::TYPECLASS)) {
throw new BarcodeException('Unsupported barcode type: ' . $type);
}
$bclass = '\\Com\\Tecnick\\Barcode\\Type\\' . self::TYPECLASS[$type];
Expand Down

0 comments on commit 6d7cb18

Please sign in to comment.