Skip to content

Commit

Permalink
Merge pull request #187 from mbaschnitzi/type-annotations-psalm
Browse files Browse the repository at this point in the history
Fix phpdoc type case for usage with vimeo/psalm
  • Loading branch information
casperbakker authored Aug 14, 2023
2 parents dab19f2 + a0b9c71 commit 10d3507
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 10d3507

Please sign in to comment.