mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
DX: rector corrections
This commit is contained in:
parent
d44f5d7af8
commit
e72df84442
@ -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
|
||||
*/
|
||||
|
@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -34,7 +34,7 @@ final class PersonControllerUpdateTest extends WebTestCase
|
||||
{
|
||||
use PrepareClientTrait;
|
||||
|
||||
private KernelBrowser $client;
|
||||
private readonly KernelBrowser $client;
|
||||
|
||||
/**
|
||||
* @var list<array<class-string, int>>
|
||||
|
Loading…
x
Reference in New Issue
Block a user