Skip to content

Commit

Permalink
DevKit updates for 5.x branch (#1670)
Browse files Browse the repository at this point in the history
Co-authored-by: Vincent Langlet <vincentlanglet@hotmail.fr>
  • Loading branch information
SonataCI and VincentLanglet authored Jan 22, 2024
1 parent 52c1a8b commit b96695d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion src/Action/LoginAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion src/Action/ResetAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit b96695d

Please sign in to comment.