Refactored code to use PHP8 attributes instead of annotations

In this change, Doctrine and validation annotations have been replaced with PHP8 Attributes. The Rector tool has been configured with a list of annotations to convert to attributes. As a consequence, the PHPStan's rules have been updated to reflect these changes. The PHP8's nullable operator (?) has been added where required, and comments in field declaration have been replaced with #[Attribute] syntax.
This commit is contained in:
2024-04-08 12:11:29 +02:00
parent 0ff4593863
commit 5be85a4fc6
35 changed files with 164 additions and 531 deletions

View File

@@ -1,53 +1,5 @@
parameters:
ignoreErrors:
-
message: """
#^Call to deprecated method getDoctrine\\(\\) of class Symfony\\\\Bundle\\\\FrameworkBundle\\\\Controller\\\\AbstractController\\:
since Symfony 5\\.4, inject an instance of ManagerRegistry in your controller instead$#
"""
count: 5
path: src/Bundle/ChillActivityBundle/Controller/ActivityReasonCategoryController.php
-
message: """
#^Call to deprecated method getDoctrine\\(\\) of class Symfony\\\\Bundle\\\\FrameworkBundle\\\\Controller\\\\AbstractController\\:
since Symfony 5\\.4, inject an instance of ManagerRegistry in your controller instead$#
"""
count: 5
path: src/Bundle/ChillActivityBundle/Controller/ActivityReasonController.php
-
message: """
#^Call to deprecated method getUsername\\(\\) of class Chill\\\\MainBundle\\\\Entity\\\\User\\:
since Symfony 5\\.3, use getUserIdentifier\\(\\) instead$#
"""
count: 2
path: src/Bundle/ChillActivityBundle/Service/DocGenerator/ListActivitiesByAccompanyingPeriodContext.php
-
message: """
#^Call to deprecated method getDoctrine\\(\\) of class Symfony\\\\Bundle\\\\FrameworkBundle\\\\Controller\\\\AbstractController\\:
since Symfony 5\\.4, inject an instance of ManagerRegistry in your controller instead$#
"""
count: 3
path: src/Bundle/ChillBudgetBundle/Controller/AbstractElementController.php
-
message: """
#^Call to deprecated method getDoctrine\\(\\) of class Symfony\\\\Bundle\\\\FrameworkBundle\\\\Controller\\\\AbstractController\\:
since Symfony 5\\.4, inject an instance of ManagerRegistry in your controller instead$#
"""
count: 4
path: src/Bundle/ChillCalendarBundle/Controller/CalendarController.php
-
message: """
#^Call to deprecated method getDoctrine\\(\\) of class Symfony\\\\Bundle\\\\FrameworkBundle\\\\Controller\\\\AbstractController\\:
since Symfony 5\\.4, inject an instance of ManagerRegistry in your controller instead$#
"""
count: 4
path: src/Bundle/ChillCustomFieldsBundle/Controller/CustomFieldController.php
-
message: """
#^Call to deprecated method get\\(\\) of class Symfony\\\\Bundle\\\\FrameworkBundle\\\\Controller\\\\AbstractController\\:
@@ -56,86 +8,6 @@ parameters:
count: 2
path: src/Bundle/ChillCustomFieldsBundle/Controller/CustomFieldsGroupController.php
-
message: """
#^Call to deprecated method getDoctrine\\(\\) of class Symfony\\\\Bundle\\\\FrameworkBundle\\\\Controller\\\\AbstractController\\:
since Symfony 5\\.4, inject an instance of ManagerRegistry in your controller instead$#
"""
count: 9
path: src/Bundle/ChillCustomFieldsBundle/Controller/CustomFieldsGroupController.php
-
message: """
#^Call to deprecated method getDoctrine\\(\\) of class Symfony\\\\Bundle\\\\FrameworkBundle\\\\Controller\\\\AbstractController\\:
since Symfony 5\\.4, inject an instance of ManagerRegistry in your controller instead$#
"""
count: 4
path: src/Bundle/ChillDocStoreBundle/Controller/DocumentAccompanyingCourseController.php
-
message: """
#^Call to deprecated method getDoctrine\\(\\) of class Symfony\\\\Bundle\\\\FrameworkBundle\\\\Controller\\\\AbstractController\\:
since Symfony 5\\.4, inject an instance of ManagerRegistry in your controller instead$#
"""
count: 7
path: src/Bundle/ChillDocStoreBundle/Controller/DocumentCategoryController.php
-
message: """
#^Call to deprecated method getDoctrine\\(\\) of class Symfony\\\\Bundle\\\\FrameworkBundle\\\\Controller\\\\AbstractController\\:
since Symfony 5\\.4, inject an instance of ManagerRegistry in your controller instead$#
"""
count: 4
path: src/Bundle/ChillDocStoreBundle/Controller/DocumentPersonController.php
-
message: """
#^Call to deprecated method get\\(\\) of class Symfony\\\\Bundle\\\\FrameworkBundle\\\\Controller\\\\AbstractController\\:
since Symfony 5\\.4, use method or constructor injection in your controller instead$#
"""
count: 2
path: src/Bundle/ChillEventBundle/Controller/EventController.php
-
message: """
#^Call to deprecated method getDoctrine\\(\\) of class Symfony\\\\Bundle\\\\FrameworkBundle\\\\Controller\\\\AbstractController\\:
since Symfony 5\\.4, inject an instance of ManagerRegistry in your controller instead$#
"""
count: 6
path: src/Bundle/ChillEventBundle/Controller/EventController.php
-
message: """
#^Call to deprecated method getDoctrine\\(\\) of class Symfony\\\\Bundle\\\\FrameworkBundle\\\\Controller\\\\AbstractController\\:
since Symfony 5\\.4, inject an instance of ManagerRegistry in your controller instead$#
"""
count: 6
path: src/Bundle/ChillEventBundle/Controller/EventTypeController.php
-
message: """
#^Call to deprecated method getDoctrine\\(\\) of class Symfony\\\\Bundle\\\\FrameworkBundle\\\\Controller\\\\AbstractController\\:
since Symfony 5\\.4, inject an instance of ManagerRegistry in your controller instead$#
"""
count: 10
path: src/Bundle/ChillEventBundle/Controller/ParticipationController.php
-
message: """
#^Call to deprecated method getDoctrine\\(\\) of class Symfony\\\\Bundle\\\\FrameworkBundle\\\\Controller\\\\AbstractController\\:
since Symfony 5\\.4, inject an instance of ManagerRegistry in your controller instead$#
"""
count: 6
path: src/Bundle/ChillEventBundle/Controller/RoleController.php
-
message: """
#^Call to deprecated method getDoctrine\\(\\) of class Symfony\\\\Bundle\\\\FrameworkBundle\\\\Controller\\\\AbstractController\\:
since Symfony 5\\.4, inject an instance of ManagerRegistry in your controller instead$#
"""
count: 6
path: src/Bundle/ChillEventBundle/Controller/StatusController.php
-
message: """
#^Call to deprecated method get\\(\\) of class Symfony\\\\Bundle\\\\FrameworkBundle\\\\Controller\\\\AbstractController\\:
@@ -144,14 +16,6 @@ parameters:
count: 1
path: src/Bundle/ChillMainBundle/CRUD/Controller/AbstractCRUDController.php
-
message: """
#^Call to deprecated method getDoctrine\\(\\) of class Symfony\\\\Bundle\\\\FrameworkBundle\\\\Controller\\\\AbstractController\\:
since Symfony 5\\.4, inject an instance of ManagerRegistry in your controller instead$#
"""
count: 2
path: src/Bundle/ChillMainBundle/CRUD/Controller/AbstractCRUDController.php
-
message: """
#^Call to deprecated method get\\(\\) of class Symfony\\\\Bundle\\\\FrameworkBundle\\\\Controller\\\\AbstractController\\:
@@ -160,14 +24,6 @@ parameters:
count: 1
path: src/Bundle/ChillMainBundle/CRUD/Controller/ApiController.php
-
message: """
#^Call to deprecated method getDoctrine\\(\\) of class Symfony\\\\Bundle\\\\FrameworkBundle\\\\Controller\\\\AbstractController\\:
since Symfony 5\\.4, inject an instance of ManagerRegistry in your controller instead$#
"""
count: 7
path: src/Bundle/ChillMainBundle/CRUD/Controller/ApiController.php
-
message: """
#^Call to deprecated method get\\(\\) of class Symfony\\\\Bundle\\\\FrameworkBundle\\\\Controller\\\\AbstractController\\:
@@ -176,14 +32,6 @@ parameters:
count: 3
path: src/Bundle/ChillMainBundle/CRUD/Controller/CRUDController.php
-
message: """
#^Call to deprecated method getDoctrine\\(\\) of class Symfony\\\\Bundle\\\\FrameworkBundle\\\\Controller\\\\AbstractController\\:
since Symfony 5\\.4, inject an instance of ManagerRegistry in your controller instead$#
"""
count: 7
path: src/Bundle/ChillMainBundle/CRUD/Controller/CRUDController.php
-
message: """
#^Call to deprecated method getUsername\\(\\) of class Chill\\\\MainBundle\\\\Entity\\\\User\\:
@@ -192,14 +40,6 @@ parameters:
count: 2
path: src/Bundle/ChillMainBundle/Command/ChillImportUsersCommand.php
-
message: """
#^Parameter \\$passwordEncoder of method Chill\\\\MainBundle\\\\Command\\\\ChillImportUsersCommand\\:\\:__construct\\(\\) has typehint with deprecated interface Symfony\\\\Component\\\\Security\\\\Core\\\\Encoder\\\\UserPasswordEncoderInterface\\:
since Symfony 5\\.3, use \\{@link UserPasswordHasherInterface\\} instead$#
"""
count: 1
path: src/Bundle/ChillMainBundle/Command/ChillImportUsersCommand.php
-
message: """
#^Call to deprecated method getUsername\\(\\) of class Chill\\\\MainBundle\\\\Entity\\\\User\\:
@@ -216,30 +56,6 @@ parameters:
count: 1
path: src/Bundle/ChillMainBundle/Command/SetPasswordCommand.php
-
message: """
#^Instantiation of deprecated class Symfony\\\\Component\\\\Security\\\\Core\\\\Encoder\\\\MessageDigestPasswordEncoder\\:
since Symfony 5\\.3, use \\{@link MessageDigestPasswordHasher\\} instead$#
"""
count: 1
path: src/Bundle/ChillMainBundle/Command/SetPasswordCommand.php
-
message: """
#^Call to deprecated method getDoctrine\\(\\) of class Symfony\\\\Bundle\\\\FrameworkBundle\\\\Controller\\\\AbstractController\\:
since Symfony 5\\.4, inject an instance of ManagerRegistry in your controller instead$#
"""
count: 2
path: src/Bundle/ChillMainBundle/Controller/AbsenceController.php
-
message: """
#^Call to deprecated method getDoctrine\\(\\) of class Symfony\\\\Bundle\\\\FrameworkBundle\\\\Controller\\\\AbstractController\\:
since Symfony 5\\.4, inject an instance of ManagerRegistry in your controller instead$#
"""
count: 1
path: src/Bundle/ChillMainBundle/Controller/AddressApiController.php
-
message: """
#^Call to deprecated method get\\(\\) of class Symfony\\\\Bundle\\\\FrameworkBundle\\\\Controller\\\\AbstractController\\:
@@ -248,46 +64,6 @@ parameters:
count: 1
path: src/Bundle/ChillMainBundle/Controller/MenuController.php
-
message: """
#^Call to deprecated method getDoctrine\\(\\) of class Symfony\\\\Bundle\\\\FrameworkBundle\\\\Controller\\\\AbstractController\\:
since Symfony 5\\.4, inject an instance of ManagerRegistry in your controller instead$#
"""
count: 1
path: src/Bundle/ChillMainBundle/Controller/NotificationController.php
-
message: """
#^Call to deprecated method getDoctrine\\(\\) of class Symfony\\\\Bundle\\\\FrameworkBundle\\\\Controller\\\\AbstractController\\:
since Symfony 5\\.4, inject an instance of ManagerRegistry in your controller instead$#
"""
count: 5
path: src/Bundle/ChillMainBundle/Controller/PasswordController.php
-
message: """
#^Parameter \\$passwordEncoder of method Chill\\\\MainBundle\\\\Controller\\\\PasswordController\\:\\:__construct\\(\\) has typehint with deprecated interface Symfony\\\\Component\\\\Security\\\\Core\\\\Encoder\\\\UserPasswordEncoderInterface\\:
since Symfony 5\\.3, use \\{@link UserPasswordHasherInterface\\} instead$#
"""
count: 1
path: src/Bundle/ChillMainBundle/Controller/PasswordController.php
-
message: """
#^Call to deprecated method getDoctrine\\(\\) of class Symfony\\\\Bundle\\\\FrameworkBundle\\\\Controller\\\\AbstractController\\:
since Symfony 5\\.4, inject an instance of ManagerRegistry in your controller instead$#
"""
count: 1
path: src/Bundle/ChillMainBundle/Controller/PostalCodeController.php
-
message: """
#^Call to deprecated method getDoctrine\\(\\) of class Symfony\\\\Bundle\\\\FrameworkBundle\\\\Controller\\\\AbstractController\\:
since Symfony 5\\.4, inject an instance of ManagerRegistry in your controller instead$#
"""
count: 5
path: src/Bundle/ChillMainBundle/Controller/ScopeController.php
-
message: """
#^Call to deprecated method get\\(\\) of class Symfony\\\\Bundle\\\\FrameworkBundle\\\\Controller\\\\AbstractController\\:
@@ -295,13 +71,6 @@ parameters:
"""
count: 1
path: src/Bundle/ChillMainBundle/Controller/SearchController.php
-
message: """
#^Call to deprecated method getDoctrine\\(\\) of class Symfony\\\\Bundle\\\\FrameworkBundle\\\\Controller\\\\AbstractController\\:
since Symfony 5\\.4, inject an instance of ManagerRegistry in your controller instead$#
"""
count: 6
path: src/Bundle/ChillMainBundle/Controller/UserController.php
-
message: """
@@ -311,30 +80,6 @@ parameters:
count: 1
path: src/Bundle/ChillMainBundle/Controller/UserController.php
-
message: """
#^Parameter \\$passwordEncoder of method Chill\\\\MainBundle\\\\Controller\\\\UserController\\:\\:__construct\\(\\) has typehint with deprecated interface Symfony\\\\Component\\\\Security\\\\Core\\\\Encoder\\\\UserPasswordEncoderInterface\\:
since Symfony 5\\.3, use \\{@link UserPasswordHasherInterface\\} instead$#
"""
count: 1
path: src/Bundle/ChillMainBundle/Controller/UserController.php
-
message: """
#^Call to deprecated method getDoctrine\\(\\) of class Symfony\\\\Bundle\\\\FrameworkBundle\\\\Controller\\\\AbstractController\\:
since Symfony 5\\.4, inject an instance of ManagerRegistry in your controller instead$#
"""
count: 1
path: src/Bundle/ChillMainBundle/Controller/UserProfileController.php
-
message: """
#^Call to deprecated method getDoctrine\\(\\) of class Symfony\\\\Bundle\\\\FrameworkBundle\\\\Controller\\\\AbstractController\\:
since Symfony 5\\.4, inject an instance of ManagerRegistry in your controller instead$#
"""
count: 1
path: src/Bundle/ChillMainBundle/Controller/WorkflowController.php
-
message: """
#^Instantiation of deprecated class Symfony\\\\Component\\\\Security\\\\Core\\\\Encoder\\\\EncoderFactory\\:
@@ -343,30 +88,6 @@ parameters:
count: 1
path: src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadUsers.php
-
message: """
#^Instantiation of deprecated class Symfony\\\\Component\\\\Security\\\\Core\\\\Encoder\\\\MessageDigestPasswordEncoder\\:
since Symfony 5\\.3, use \\{@link MessageDigestPasswordHasher\\} instead$#
"""
count: 1
path: src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadUsers.php
-
message: """
#^Parameter \\$passwordEncoder of method Chill\\\\MainBundle\\\\Form\\\\UserPasswordType\\:\\:__construct\\(\\) has typehint with deprecated interface Symfony\\\\Component\\\\Security\\\\Core\\\\Encoder\\\\UserPasswordEncoderInterface\\:
since Symfony 5\\.3, use \\{@link UserPasswordHasherInterface\\} instead$#
"""
count: 1
path: src/Bundle/ChillMainBundle/Form/UserPasswordType.php
-
message: """
#^Call to deprecated method isMasterRequest\\(\\) of class Symfony\\\\Component\\\\HttpKernel\\\\Event\\\\KernelEvent\\:
since symfony/http\\-kernel 5\\.3, use isMainRequest\\(\\) instead$#
"""
count: 1
path: src/Bundle/ChillMainBundle/Notification/EventListener/PersistNotificationOnTerminateEventSubscriber.php
-
message: """
#^Call to deprecated method getUsername\\(\\) of class Chill\\\\MainBundle\\\\Entity\\\\User\\:
@@ -375,14 +96,6 @@ parameters:
count: 2
path: src/Bundle/ChillMainBundle/Security/Authorization/AuthorizationHelper.php
-
message: """
#^Instantiation of deprecated class Symfony\\\\Component\\\\Security\\\\Core\\\\Exception\\\\UsernameNotFoundException\\:
since Symfony 5\\.3 to be removed in 6\\.0, use UserNotFoundException instead\\.$#
"""
count: 1
path: src/Bundle/ChillMainBundle/Security/UserProvider/UserProvider.php
-
message: """
#^Call to deprecated method getUsername\\(\\) of class Chill\\\\MainBundle\\\\Entity\\\\User\\:
@@ -407,54 +120,6 @@ parameters:
count: 1
path: src/Bundle/ChillMainBundle/Validator/Constraints/Entity/UserCircleConsistencyValidator.php
-
message: """
#^Call to deprecated method getDoctrine\\(\\) of class Symfony\\\\Bundle\\\\FrameworkBundle\\\\Controller\\\\AbstractController\\:
since Symfony 5\\.4, inject an instance of ManagerRegistry in your controller instead$#
"""
count: 1
path: src/Bundle/ChillPersonBundle/CRUD/Controller/EntityPersonCRUDController.php
-
message: """
#^Call to deprecated method getDoctrine\\(\\) of class Symfony\\\\Bundle\\\\FrameworkBundle\\\\Controller\\\\AbstractController\\:
since Symfony 5\\.4, inject an instance of ManagerRegistry in your controller instead$#
"""
count: 3
path: src/Bundle/ChillPersonBundle/CRUD/Controller/OneToOneEntityPersonCRUDController.php
-
message: """
#^Call to deprecated method getDoctrine\\(\\) of class Symfony\\\\Bundle\\\\FrameworkBundle\\\\Controller\\\\AbstractController\\:
since Symfony 5\\.4, inject an instance of ManagerRegistry in your controller instead$#
"""
count: 5
path: src/Bundle/ChillPersonBundle/Controller/AccompanyingCourseApiController.php
-
message: """
#^Call to deprecated method getDoctrine\\(\\) of class Symfony\\\\Bundle\\\\FrameworkBundle\\\\Controller\\\\AbstractController\\:
since Symfony 5\\.4, inject an instance of ManagerRegistry in your controller instead$#
"""
count: 3
path: src/Bundle/ChillPersonBundle/Controller/AccompanyingCourseCommentController.php
-
message: """
#^Call to deprecated method getDoctrine\\(\\) of class Symfony\\\\Bundle\\\\FrameworkBundle\\\\Controller\\\\AbstractController\\:
since Symfony 5\\.4, inject an instance of ManagerRegistry in your controller instead$#
"""
count: 6
path: src/Bundle/ChillPersonBundle/Controller/AccompanyingCourseController.php
-
message: """
#^Call to deprecated method getDoctrine\\(\\) of class Symfony\\\\Bundle\\\\FrameworkBundle\\\\Controller\\\\AbstractController\\:
since Symfony 5\\.4, inject an instance of ManagerRegistry in your controller instead$#
"""
count: 1
path: src/Bundle/ChillPersonBundle/Controller/AccompanyingCourseWorkController.php
-
message: """
#^Call to deprecated method get\\(\\) of class Symfony\\\\Bundle\\\\FrameworkBundle\\\\Controller\\\\AbstractController\\:
@@ -463,53 +128,6 @@ parameters:
count: 13
path: src/Bundle/ChillPersonBundle/Controller/AccompanyingPeriodController.php
-
message: """
#^Call to deprecated method getDoctrine\\(\\) of class Symfony\\\\Bundle\\\\FrameworkBundle\\\\Controller\\\\AbstractController\\:
since Symfony 5\\.4, inject an instance of ManagerRegistry in your controller instead$#
"""
count: 6
path: src/Bundle/ChillPersonBundle/Controller/AccompanyingPeriodController.php
-
message: """
#^Call to deprecated method getDoctrine\\(\\) of class Symfony\\\\Bundle\\\\FrameworkBundle\\\\Controller\\\\AbstractController\\:
since Symfony 5\\.4, inject an instance of ManagerRegistry in your controller instead$#
"""
count: 1
path: src/Bundle/ChillPersonBundle/Controller/ClosingMotiveController.php
-
message: """
#^Call to deprecated method getDoctrine\\(\\) of class Symfony\\\\Bundle\\\\FrameworkBundle\\\\Controller\\\\AbstractController\\:
since Symfony 5\\.4, inject an instance of ManagerRegistry in your controller instead$#
"""
count: 1
path: src/Bundle/ChillPersonBundle/Controller/HouseholdApiController.php
-
message: """
#^Call to deprecated method getDoctrine\\(\\) of class Symfony\\\\Bundle\\\\FrameworkBundle\\\\Controller\\\\AbstractController\\:
since Symfony 5\\.4, inject an instance of ManagerRegistry in your controller instead$#
"""
count: 3
path: src/Bundle/ChillPersonBundle/Controller/HouseholdController.php
-
message: """
#^Call to deprecated method getDoctrine\\(\\) of class Symfony\\\\Bundle\\\\FrameworkBundle\\\\Controller\\\\AbstractController\\:
since Symfony 5\\.4, inject an instance of ManagerRegistry in your controller instead$#
"""
count: 4
path: src/Bundle/ChillPersonBundle/Controller/HouseholdMemberController.php
-
message: """
#^Call to deprecated method getDoctrine\\(\\) of class Symfony\\\\Bundle\\\\FrameworkBundle\\\\Controller\\\\AbstractController\\:
since Symfony 5\\.4, inject an instance of ManagerRegistry in your controller instead$#
"""
count: 8
path: src/Bundle/ChillPersonBundle/Controller/PersonAddressController.php
-
message: """
#^Call to deprecated method get\\(\\) of class Symfony\\\\Bundle\\\\FrameworkBundle\\\\Controller\\\\AbstractController\\:
@@ -518,30 +136,6 @@ parameters:
count: 4
path: src/Bundle/ChillPersonBundle/Controller/PersonController.php
-
message: """
#^Call to deprecated method getDoctrine\\(\\) of class Symfony\\\\Bundle\\\\FrameworkBundle\\\\Controller\\\\AbstractController\\:
since Symfony 5\\.4, inject an instance of ManagerRegistry in your controller instead$#
"""
count: 8
path: src/Bundle/ChillPersonBundle/Controller/PersonDuplicateController.php
-
message: """
#^Call to deprecated method getDoctrine\\(\\) of class Symfony\\\\Bundle\\\\FrameworkBundle\\\\Controller\\\\AbstractController\\:
since Symfony 5\\.4, inject an instance of ManagerRegistry in your controller instead$#
"""
count: 4
path: src/Bundle/ChillPersonBundle/Controller/ResidentialAddressController.php
-
message: """
#^Call to deprecated method getDoctrine\\(\\) of class Symfony\\\\Bundle\\\\FrameworkBundle\\\\Controller\\\\AbstractController\\:
since Symfony 5\\.4, inject an instance of ManagerRegistry in your controller instead$#
"""
count: 1
path: src/Bundle/ChillPersonBundle/Controller/TimelinePersonController.php
-
message: """
#^Call to deprecated method get\\(\\) of class Symfony\\\\Bundle\\\\FrameworkBundle\\\\Controller\\\\AbstractController\\:
@@ -550,22 +144,6 @@ parameters:
count: 7
path: src/Bundle/ChillReportBundle/Controller/ReportController.php
-
message: """
#^Call to deprecated method getDoctrine\\(\\) of class Symfony\\\\Bundle\\\\FrameworkBundle\\\\Controller\\\\AbstractController\\:
since Symfony 5\\.4, inject an instance of ManagerRegistry in your controller instead$#
"""
count: 9
path: src/Bundle/ChillReportBundle/Controller/ReportController.php
-
message: """
#^Call to deprecated method getDoctrine\\(\\) of class Symfony\\\\Bundle\\\\FrameworkBundle\\\\Controller\\\\AbstractController\\:
since Symfony 5\\.4, inject an instance of ManagerRegistry in your controller instead$#
"""
count: 8
path: src/Bundle/ChillTaskBundle/Controller/SingleTaskController.php
-
message: """
#^Call to deprecated method getUsername\\(\\) of class Chill\\\\MainBundle\\\\Entity\\\\User\\: