apply rector rules

This commit is contained in:
2023-07-28 02:40:02 +02:00
parent 157cdf6dfc
commit f570fe92a5
112 changed files with 252 additions and 562 deletions

View File

@@ -28,20 +28,17 @@ use function in_array;
*/
class ComposedRoleScopeType extends AbstractType
{
/**
* @var RoleProvider
*/
private $roleProvider;
private readonly \Chill\MainBundle\Security\RoleProvider $roleProvider;
/**
* @var string[]
*/
private $roles = [];
private array $roles = [];
/**
* @var string[]
*/
private $rolesWithoutScope = [];
private array $rolesWithoutScope = [];
public function __construct(
private readonly TranslatableStringHelper $translatableStringHelper,

View File

@@ -26,7 +26,7 @@ class TranslatableStringFormType extends AbstractType
{
// The langauges availaible
private $frameworkTranslatorFallback; // The langagues used for the translation
private readonly array $frameworkTranslatorFallback; // The langagues used for the translation
public function __construct(private readonly array $availableLanguages, Translator $translator)
{