From dea283d6552ec2af0e3fbc99498e7e98008023a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Fri, 11 Feb 2022 16:03:22 +0100 Subject: [PATCH] fix phpstan and cs --- phpstan-deprecations.neon | 9 --------- .../ChillDocStoreBundle/Form/PersonDocumentType.php | 4 ++-- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/phpstan-deprecations.neon b/phpstan-deprecations.neon index 74aad09f4..7489d4d80 100644 --- a/phpstan-deprecations.neon +++ b/phpstan-deprecations.neon @@ -408,15 +408,6 @@ parameters: count: 1 path: src/Bundle/ChillCustomFieldsBundle/Form/CustomFieldsGroupType.php - - - message: - """ - #^Call to deprecated method getReachableScopes\\(\\) of class Chill\\\\MainBundle\\\\Security\\\\Authorization\\\\AuthorizationHelper\\: - Use getReachableCircles$# - """ - count: 1 - path: src/Bundle/ChillDocStoreBundle/Controller/DocumentPersonController.php - - message: """ diff --git a/src/Bundle/ChillDocStoreBundle/Form/PersonDocumentType.php b/src/Bundle/ChillDocStoreBundle/Form/PersonDocumentType.php index 9c42785cb..bcbd4d707 100644 --- a/src/Bundle/ChillDocStoreBundle/Form/PersonDocumentType.php +++ b/src/Bundle/ChillDocStoreBundle/Form/PersonDocumentType.php @@ -53,10 +53,10 @@ class PersonDocumentType extends AbstractType */ protected $user; - private ScopeResolverDispatcher $scopeResolverDispatcher; - private ParameterBagInterface $parameterBag; + private ScopeResolverDispatcher $scopeResolverDispatcher; + public function __construct( TranslatableStringHelper $translatableStringHelper, ScopeResolverDispatcher $scopeResolverDispatcher,