diff --git a/phpstan.dist.neon b/phpstan.dist.neon index b2ae4824..646d29e6 100644 --- a/phpstan.dist.neon +++ b/phpstan.dist.neon @@ -26,7 +26,7 @@ parameters: checkUninitializedProperties: true - checkFunctionNameCase: true + checkFunctionNameCase: false checkAlwaysTrueInstanceof: false checkAlwaysTrueCheckTypeFunctionCall: false diff --git a/src/Services/LabelSystem/PlaceholderProviders/BarcodeProvider.php b/src/Services/LabelSystem/PlaceholderProviders/BarcodeProvider.php index 80685e86..dd70177f 100644 --- a/src/Services/LabelSystem/PlaceholderProviders/BarcodeProvider.php +++ b/src/Services/LabelSystem/PlaceholderProviders/BarcodeProvider.php @@ -75,7 +75,8 @@ final class BarcodeProvider implements PlaceholderProviderInterface return $this->barcodeGenerator->generateHTMLBarcode($label_options, $label_target); } - if ($label_target instanceof Part || $label_target instanceof PartLot) { + if (($label_target instanceof Part || $label_target instanceof PartLot) + && str_starts_with($placeholder, '[[IPN_BARCODE_')) { if ($label_target instanceof PartLot) { $label_target = $label_target->getPart(); }