From b2fe1274f5b0af8c5342e48637530e9043fbf2d0 Mon Sep 17 00:00:00 2001 From: SonataCI Date: Mon, 22 Jan 2024 12:14:13 +0000 Subject: [PATCH 1/2] DevKit updates --- phpstan.neon.dist | 1 + 1 file changed, 1 insertion(+) diff --git a/phpstan.neon.dist b/phpstan.neon.dist index f6fa09020..87f02aa9e 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -24,6 +24,7 @@ parameters: featureToggles: skipCheckGenericClasses: - Symfony\Component\Form\AbstractType + - Symfony\Component\Form\FormBuilderInterface - Symfony\Component\Form\FormInterface - Symfony\Component\Form\FormTypeExtensionInterface - Symfony\Component\Form\FormTypeInterface From 1ac383d1c980118bda964a2ad54a184322c51281 Mon Sep 17 00:00:00 2001 From: Vincent Langlet Date: Mon, 22 Jan 2024 22:54:54 +0100 Subject: [PATCH 2/2] Solve issues --- composer.json | 2 +- src/Action/LoginAction.php | 2 +- src/Action/ResetAction.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 8d7974c25..3e12b72fa 100644 --- a/composer.json +++ b/composer.json @@ -64,7 +64,7 @@ "phpunit/phpunit": "^9.5", "psalm/plugin-phpunit": "^0.18", "psalm/plugin-symfony": "^5.0", - "rector/rector": "^0.18", + "rector/rector": "^0.19", "sonata-project/admin-bundle": "^4.20", "sonata-project/block-bundle": "^4.11 || ^5.0", "sonata-project/doctrine-orm-admin-bundle": "^4.0", diff --git a/src/Action/LoginAction.php b/src/Action/LoginAction.php index dc5aed5a6..9307aa2c1 100644 --- a/src/Action/LoginAction.php +++ b/src/Action/LoginAction.php @@ -46,8 +46,8 @@ public function __invoke(Request $request): Response /** * TODO: Use instanceof FlashBagAwareSessionInterface when dropping Symfony 5 support. * - * @phpstan-ignore-next-line * @psalm-suppress UndefinedInterfaceMethod + * @phpstan-ignore-next-line */ $request->getSession()->getFlashBag()->add( 'sonata_user_error', diff --git a/src/Action/ResetAction.php b/src/Action/ResetAction.php index d6293c8d1..392c38b73 100644 --- a/src/Action/ResetAction.php +++ b/src/Action/ResetAction.php @@ -70,8 +70,8 @@ public function __invoke(Request $request, string $token): Response /** * TODO: Use instanceof FlashBagAwareSessionInterface when dropping Symfony 5 support. * - * @phpstan-ignore-next-line * @psalm-suppress UndefinedInterfaceMethod + * @phpstan-ignore-next-line */ $request->getSession()->getFlashBag()->add( 'success',