DX: rector corrections

This commit is contained in:
Julien Fastré 2023-09-01 10:55:58 +02:00
parent d44f5d7af8
commit e72df84442
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB
3 changed files with 2 additions and 3 deletions

View File

@ -206,7 +206,6 @@ class AuthorizationHelper implements AuthorizationHelperInterface
* the scope is taken into account. * the scope is taken into account.
* *
* @param mixed $entity the entity may also implement HasScopeInterface * @param mixed $entity the entity may also implement HasScopeInterface
* @param string $attribute
* *
* @return bool true if the user has access * @return bool true if the user has access
*/ */

View File

@ -52,7 +52,7 @@ final class DefaultScopeResolverTest extends TestCase
public function testHasScopesInterface() public function testHasScopesInterface()
{ {
$entity = new class ($scopeA = new Scope(), $scopeB = new Scope()) implements HasScopesInterface { $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)
{ {
} }

View File

@ -34,7 +34,7 @@ final class PersonControllerUpdateTest extends WebTestCase
{ {
use PrepareClientTrait; use PrepareClientTrait;
private KernelBrowser $client; private readonly KernelBrowser $client;
/** /**
* @var list<array<class-string, int>> * @var list<array<class-string, int>>