The doc comment float|int|numeric-string at position 4 could not be parsed: Unknown type name 'numeric-string' at position 4 in float|int|numeric-string.
Loading history...
20
*/
21
public static function from(float|int|string $number): self
22
{
23
return OperandsCache::get($number, static fn(): self => new self($number));
The doc comment float|int|numeric-string at position 4 could not be parsed: Unknown type name 'numeric-string' at position 4 in float|int|numeric-string.
Loading history...
36
*/
37
private function __construct(float|int|string $number)
It seems like $number can also be of type string; however, parameter $num of abs() does only seem to accept double|integer, maybe add an additional type check?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation