From f53c80c442eabd7b2347710387cbc9cce22f1a4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Sun, 31 May 2020 13:10:44 +0200 Subject: [PATCH] Fixed PHPUnit issues. --- src/Controller/PartController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Controller/PartController.php b/src/Controller/PartController.php index 81b89221..57fcfcd3 100644 --- a/src/Controller/PartController.php +++ b/src/Controller/PartController.php @@ -182,6 +182,7 @@ class PartController extends AbstractController $this->addFlash('info', 'part.edited_flash'); //Redirect to clone page if user wished that... + //@phpstan-ignore-next-line if ("save_and_clone" === $form->getClickedButton()->getName()) { return $this->redirectToRoute('part_clone', ['id' => $part->getID()]); } @@ -308,6 +309,7 @@ class PartController extends AbstractController $this->addFlash('success', 'part.created_flash'); //Redirect to clone page if user wished that... + //@phpstan-ignore-next-line if ("save_and_clone" === $form->getClickedButton()->getName()) { return $this->redirectToRoute('part_clone', ['id' => $new_part->getID()]); }