Updated argument PHPdoc to fix PHPstan errors.

This commit is contained in:
Jan Böhmer 2020-04-22 10:54:08 +02:00
parent e51b5c3089
commit a7cfe7b42f
2 changed files with 2 additions and 2 deletions

View file

@ -47,7 +47,7 @@ class LabelGenerator
/**
* @param LabelOptions $options
* @param object|object[] $element An element or an array of elements for which labels should be generated
* @param object|object[] $elements An element or an array of elements for which labels should be generated
* @return string
*/
public function generateLabel(LabelOptions $options, $elements): string

View file

@ -27,7 +27,7 @@ class RangeParser
{
/**
* Converts the given range string to an array of all numbers in the given range.
* @param string $range A range string like '1-3, 5, 6'
* @param string $range_str A range string like '1-3, 5, 6'
* @return int[] An array with all numbers from the range (e.g. [1, 2, 3, 5, 6]
*/
public function parse(string $range_str): array