If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
48
return new Result(Result::STATUS_FAIL, 'Too many elements in list ("' . /** @scrutinizer ignore-type */ $length . '"). Maximum was ' . $this->maxLength);
Loading history...
49
} else {
50
return new Result(Result::STATUS_FAIL, $length . ' elements in list. Maximum was ' . $this->maxLength);