Skip to content

Commit 10d3507

Browse files
authored
Merge pull request #187 from mbaschnitzi/type-annotations-psalm
Fix phpdoc type case for usage with vimeo/psalm
2 parents dab19f2 + a0b9c71 commit 10d3507

4 files changed

+4
-4
lines changed

src/BarcodeGeneratorDynamicHTML.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class BarcodeGeneratorDynamicHTML extends BarcodeGenerator
1111
* This 'dynamic' version uses percentage based widths and heights, resulting in a vector-y qualitative result.
1212
*
1313
* @param string $barcode code to print
14-
* @param BarcodeGenerator::Type_* $type (string) type of barcode
14+
* @param BarcodeGenerator::TYPE_* $type (string) type of barcode
1515
* @param string $foregroundColor Foreground color for bar elements as '#333' or 'orange' for example (background is transparent).
1616
* @return string HTML code.
1717
*/

src/BarcodeGeneratorHTML.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class BarcodeGeneratorHTML extends BarcodeGenerator
99
* This original version uses pixel based widths and heights. Use Dynamic HTML version for better quality representation.
1010
*
1111
* @param string $barcode code to print
12-
* @param BarcodeGenerator::Type_* $type (string) type of barcode
12+
* @param BarcodeGenerator::TYPE_* $type (string) type of barcode
1313
* @param int $widthFactor Width of a single bar element in pixels.
1414
* @param int $height Height of a single bar element in pixels.
1515
* @param string $foregroundColor Foreground color for bar elements as '#333' or 'orange' for example (background is transparent).

src/BarcodeGeneratorPNG.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function useGd()
4646
* Return a PNG image representation of barcode (requires GD or Imagick library).
4747
*
4848
* @param string $barcode code to print
49-
* @param BarcodeGenerator::Type_* $type (string) type of barcode
49+
* @param BarcodeGenerator::TYPE_* $type (string) type of barcode
5050
* @param int $widthFactor Width of a single bar element in pixels.
5151
* @param int $height Height of a single bar element in pixels.
5252
* @param array $foregroundColor RGB (0-255) foreground color for bar elements (background is transparent).

src/BarcodeGeneratorSVG.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class BarcodeGeneratorSVG extends BarcodeGenerator
88
* Return a SVG string representation of barcode.
99
*
1010
* @param $barcode (string) code to print
11-
* @param BarcodeGenerator::Type_* $type (string) type of barcode
11+
* @param BarcodeGenerator::TYPE_* $type (string) type of barcode
1212
* @param $widthFactor (float) Minimum width of a single bar in user units.
1313
* @param $height (float) Height of barcode in user units.
1414
* @param $foregroundColor (string) Foreground color (in SVG format) for bar elements (background is transparent).

0 commit comments

Comments
 (0)