mirror of
https://github.com/wallabag/wallabag.git
synced 2025-07-22 17:18:37 +00:00
Clean PHPStan baseline
This commit is contained in:
parent
0d93add058
commit
e63d473032
17 changed files with 73 additions and 85 deletions
|
@ -85,7 +85,7 @@ class AnnotationController extends AbstractFOSRestController
|
|||
return JsonResponse::fromJsonString($json);
|
||||
}
|
||||
|
||||
return $form;
|
||||
return new JsonResponse(status: 400);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -118,7 +118,7 @@ class AnnotationController extends AbstractFOSRestController
|
|||
return JsonResponse::fromJsonString($json);
|
||||
}
|
||||
|
||||
return $form;
|
||||
return new JsonResponse(status: 400);
|
||||
} catch (\InvalidArgumentException $e) {
|
||||
throw new NotFoundHttpException($e);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue