Skip to content

Commit 829fb1f

Browse files
authored
Merge pull request #176 from trandbert37/update-php-doc-types
Update PHP doc types
2 parents 3d77915 + 8e6e936 commit 829fb1f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/BarcodeGeneratorSVG.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ class BarcodeGeneratorSVG extends BarcodeGenerator
88
* Return a SVG string representation of barcode.
99
*
1010
* @param $barcode (string) code to print
11-
* @param $type (const) type of barcode
11+
* @param BarcodeGenerator::Type_* $type (string) type of barcode
1212
* @param $widthFactor (int) Minimum width of a single bar in user units.
1313
* @param $height (int) Height of barcode in user units.
1414
* @param $foregroundColor (string) Foreground color (in SVG format) for bar elements (background is transparent).
1515
* @return string SVG code.
1616
* @public
1717
*/
18-
public function getBarcode($barcode, $type, int $widthFactor = 2, int $height = 30, string $foregroundColor = 'black')
18+
public function getBarcode(string $barcode, $type, int $widthFactor = 2, int $height = 30, string $foregroundColor = 'black'): string
1919
{
2020
$barcodeData = $this->getBarcodeData($barcode, $type);
2121

0 commit comments

Comments
 (0)