Change number PHPDoc type to int|float
While number is a valid type inside PHP internally, it's not a part of the PHPDoc standard. This causes IDEs and static analysers to raise errors on this function. The internal PHP type `number` is the same as `int|float`, this changes the type to that. https://php.net/manual/en/language.pseudo-types.php#language.types.number https://github.com/php-fig/fig-standards/blob/master/proposed/phpdoc.md#keyword
This commit is contained in:
parent
3ba4112009
commit
c7601cb40e
|
@ -355,7 +355,7 @@ class NumberFormatter
|
||||||
/**
|
/**
|
||||||
* Format a number.
|
* Format a number.
|
||||||
*
|
*
|
||||||
* @param number $value The value to format
|
* @param int|float $value The value to format
|
||||||
* @param int $type Type of the formatting, one of the format type constants
|
* @param int $type Type of the formatting, one of the format type constants
|
||||||
* Only type NumberFormatter::TYPE_DEFAULT is currently supported.
|
* Only type NumberFormatter::TYPE_DEFAULT is currently supported.
|
||||||
*
|
*
|
||||||
|
|
Reference in New Issue