Skip to content

Commit

Permalink
Fix phpdoc type case for usage with vimeo/psalm
Browse files Browse the repository at this point in the history
The phpdoc type BarcodeGenerator::Type_* (with wrong case) is not
recognized by vimeo/psalm, but BarcodeGenerator::TYPE_* (with correct
case) is.
  • Loading branch information
mbaschnitzi committed Aug 8, 2023
1 parent dab19f2 commit a0b9c71
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/BarcodeGeneratorDynamicHTML.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class BarcodeGeneratorDynamicHTML extends BarcodeGenerator
* This 'dynamic' version uses percentage based widths and heights, resulting in a vector-y qualitative result.
*
* @param string $barcode code to print
* @param BarcodeGenerator::Type_* $type (string) type of barcode
* @param BarcodeGenerator::TYPE_* $type (string) type of barcode
* @param string $foregroundColor Foreground color for bar elements as '#333' or 'orange' for example (background is transparent).
* @return string HTML code.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/BarcodeGeneratorHTML.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class BarcodeGeneratorHTML extends BarcodeGenerator
* This original version uses pixel based widths and heights. Use Dynamic HTML version for better quality representation.
*
* @param string $barcode code to print
* @param BarcodeGenerator::Type_* $type (string) type of barcode
* @param BarcodeGenerator::TYPE_* $type (string) type of barcode
* @param int $widthFactor Width of a single bar element in pixels.
* @param int $height Height of a single bar element in pixels.
* @param string $foregroundColor Foreground color for bar elements as '#333' or 'orange' for example (background is transparent).
Expand Down
2 changes: 1 addition & 1 deletion src/BarcodeGeneratorPNG.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function useGd()
* Return a PNG image representation of barcode (requires GD or Imagick library).
*
* @param string $barcode code to print
* @param BarcodeGenerator::Type_* $type (string) type of barcode
* @param BarcodeGenerator::TYPE_* $type (string) type of barcode
* @param int $widthFactor Width of a single bar element in pixels.
* @param int $height Height of a single bar element in pixels.
* @param array $foregroundColor RGB (0-255) foreground color for bar elements (background is transparent).
Expand Down
2 changes: 1 addition & 1 deletion src/BarcodeGeneratorSVG.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class BarcodeGeneratorSVG extends BarcodeGenerator
* Return a SVG string representation of barcode.
*
* @param $barcode (string) code to print
* @param BarcodeGenerator::Type_* $type (string) type of barcode
* @param BarcodeGenerator::TYPE_* $type (string) type of barcode
* @param $widthFactor (float) Minimum width of a single bar in user units.
* @param $height (float) Height of barcode in user units.
* @param $foregroundColor (string) Foreground color (in SVG format) for bar elements (background is transparent).
Expand Down

0 comments on commit a0b9c71

Please sign in to comment.