I've just created a new laravel project and setup the linting automation, but a lint error popped up in the return statement.
protected function configureRateLimiting()
{
RateLimiter::for('api', function (Request $request) {
return Limit::perMinute(60)->by($request->user()?->id ?: $request->ip());
});
}
Why the lint error pops up?
$request->user()?->idWhy you think this is valid PHP?