It seems like $this->maximum can also be of type string; however, parameter $val of is_nan() does only seem to accept double, 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
45
if (is_nan( /** @scrutinizer ignore-type */ $this->maximum ))
Loading history...
46
return false;
47
48
if (is_infinite( $this->maximum ) && $this->maximum < 0)
It seems like $this->maximum can also be of type string; however, parameter $val of is_infinite() does only seem to accept double, 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
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.