'fondbot.webhook' of type string is incompatible with the type Illuminate\Http\dynamic expected by parameter $patterns of Illuminate\Http\Request::routeIs().
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
The expression return 'Something went wrong.' returns the type string which is incompatible with the return type mandated by Illuminate\Contracts\Deb...eptionHandler::render() of Symfony\Component\HttpFoundation\Response.
In the issue above, the returned value is violating the contract defined by the
mentioned interface.
Let's take a look at an example:
interfaceHasName{/** @return string */publicfunctiongetName();}className{public$name;}classUserimplementsHasName{/** @return string|Name */publicfunctiongetName(){returnnewName('foo');// This is a violation of the ``HasName`` interface// which only allows a string value to be returned.}}
Loading history...
24
}
25
26
return parent::render($request, $e);
27
}
28
29
/** {@inheritdoc} */
30
protected function renderHttpException(HttpException $e): Response