From e72df8444263d3ce84167fbd37b6070da568f62c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Fri, 1 Sep 2023 10:55:58 +0200 Subject: [PATCH] DX: rector corrections --- .../Security/Authorization/AuthorizationHelper.php | 1 - .../Tests/Security/Resolver/DefaultScopeResolverTest.php | 2 +- .../Tests/Controller/PersonControllerUpdateTest.php | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Bundle/ChillMainBundle/Security/Authorization/AuthorizationHelper.php b/src/Bundle/ChillMainBundle/Security/Authorization/AuthorizationHelper.php index 9d080df07..6d1f92de7 100644 --- a/src/Bundle/ChillMainBundle/Security/Authorization/AuthorizationHelper.php +++ b/src/Bundle/ChillMainBundle/Security/Authorization/AuthorizationHelper.php @@ -206,7 +206,6 @@ class AuthorizationHelper implements AuthorizationHelperInterface * the scope is taken into account. * * @param mixed $entity the entity may also implement HasScopeInterface - * @param string $attribute * * @return bool true if the user has access */ diff --git a/src/Bundle/ChillMainBundle/Tests/Security/Resolver/DefaultScopeResolverTest.php b/src/Bundle/ChillMainBundle/Tests/Security/Resolver/DefaultScopeResolverTest.php index e28558a20..037a7272b 100644 --- a/src/Bundle/ChillMainBundle/Tests/Security/Resolver/DefaultScopeResolverTest.php +++ b/src/Bundle/ChillMainBundle/Tests/Security/Resolver/DefaultScopeResolverTest.php @@ -52,7 +52,7 @@ final class DefaultScopeResolverTest extends TestCase public function testHasScopesInterface() { $entity = new class ($scopeA = new Scope(), $scopeB = new Scope()) implements HasScopesInterface { - public function __construct(private Scope $scopeA, private Scope $scopeB) + public function __construct(private readonly Scope $scopeA, private readonly Scope $scopeB) { } diff --git a/src/Bundle/ChillPersonBundle/Tests/Controller/PersonControllerUpdateTest.php b/src/Bundle/ChillPersonBundle/Tests/Controller/PersonControllerUpdateTest.php index ffc68aa76..d8aea96fd 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Controller/PersonControllerUpdateTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Controller/PersonControllerUpdateTest.php @@ -34,7 +34,7 @@ final class PersonControllerUpdateTest extends WebTestCase { use PrepareClientTrait; - private KernelBrowser $client; + private readonly KernelBrowser $client; /** * @var list>