Closed mbaschnitzi closed 1 year ago
The phpdoc type BarcodeGenerator::Type* (with wrong case) is not recognized by vimeo/psalm, but BarcodeGenerator::TYPE* (with correct case) is.
We found this issue because of the change in #176, which caused psalm to throw the following error:
InvalidArgument: Argument 2 of Picqer\Barcode\BarcodeGeneratorPNG::getBarcode expects Picqer\Barcode\BarcodeGenerator::Type_*, but 'C128' provided
Thanks @mbaschnitzi
The phpdoc type BarcodeGenerator::Type* (with wrong case) is not recognized by vimeo/psalm, but BarcodeGenerator::TYPE* (with correct case) is.
We found this issue because of the change in #176, which caused psalm to throw the following error: