request('from') of type Illuminate\Http\Request|array|string is incompatible with the type integer expected by parameter $value of Carbon\Carbon::subDays().
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
It seems like $from can also be of type false; however, parameter $from of App\Services\UserService::getUserStats() does only seem to accept Carbon\Carbon, 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
It seems like $from can also be of type false; however, parameter $from of App\Services\SolutionService::getSubmissionStats() does only seem to accept Carbon\Carbon, 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