Apply rector rules: symfony up to 54

This commit is contained in:
2024-04-04 23:30:25 +02:00
parent 1ee3b9e2f0
commit 579bd829f8
204 changed files with 974 additions and 2346 deletions

View File

@@ -24,11 +24,8 @@ use Symfony\Component\Serializer\Annotation\Groups;
* @ORM\Table(name="scopes")
*
* @ORM\Cache(usage="NONSTRICT_READ_WRITE", region="acl_cache_region")
*
* @DiscriminatorMap(typeProperty="type", mapping={
* "scope": Scope::class
* })
*/
#[DiscriminatorMap(typeProperty: 'type', mapping: ['scope' => Scope::class])]
class Scope
{
/**
@@ -42,9 +39,8 @@ class Scope
* @ORM\Column(name="id", type="integer")
*
* @ORM\GeneratedValue(strategy="AUTO")
*
* @Groups({"read", "docgen:read"})
*/
#[Groups(['read', 'docgen:read'])]
private ?int $id = null;
/**
@@ -52,10 +48,9 @@ class Scope
*
* @ORM\Column(type="json")
*
* @Groups({"read", "docgen:read"})
*
* @Context({"is-translatable": true}, groups={"docgen:read"})
*/
#[Groups(['read', 'docgen:read'])]
private array $name = [];
/**