From b96695d6aa3b0a6ef355c9d4d61ccf71cacacf1c Mon Sep 17 00:00:00 2001 From: Sonata CI Date: Mon, 22 Jan 2024 21:57:43 +0000 Subject: [PATCH] DevKit updates for 5.x branch (#1670) Co-authored-by: Vincent Langlet --- composer.json | 2 +- phpstan.neon.dist | 1 + src/Action/LoginAction.php | 2 +- src/Action/ResetAction.php | 2 +- 4 files changed, 4 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/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 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',