[TOOLS] Fix all errors found by PHPStan level 1

This commit is contained in:
2021-09-06 20:59:36 +01:00
parent 0da6ff05ed
commit add8f4a52f
19 changed files with 83 additions and 54 deletions

View File

@@ -47,11 +47,6 @@ class Note extends Controller
*/
public function note_show(Request $request, int $id)
{
return $this->note($id, function ($note) use ($id) {
return [
'_template' => 'note/view.html.twig',
'note' => $note,
];
});
return $this->note($id, fn ($note) => ['_template' => 'note/view.html.twig', 'note' => $note]);
}
}