The method isDownForMaintenance() does not exist on Illuminate\Container\Container. Are you sure you never get this type here, but always one of the subclasses?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
18
if (true === app()->/** @scrutinizer ignore-call */ isDownForMaintenance()) {
Loading history...
19
return response()->json([
20
'error' => [
21
'code' => 503,
22
'message' => 'Service is down for scheduled maintenance. Be right back!'
23
]
24
], 503);
25
}
26
27
if (true === $e instanceof ApiInternalCallValidationException) {
array('error' => array('...> 'Validation failed')) of type array<string,array<string,integer|string>> is incompatible with the type string expected by parameter $content of response().
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
The method withException() does not exist on Symfony\Component\HttpFoundation\Response. It seems like you code against a sub-type of Symfony\Component\HttpFoundation\Response such as Illuminate\Http\Response or Illuminate\Http\JsonResponse or Illuminate\Http\RedirectResponse.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation