mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-23 08:03:49 +00:00
DX: apply rector rules up to php8.0
This commit is contained in:
@@ -34,13 +34,6 @@ class LoadAndUpdateLanguagesCommand extends Command
|
||||
private $ancientToExclude = ['ang', 'egy', 'fro', 'goh', 'grc', 'la', 'non', 'peo', 'pro', 'sga',
|
||||
'dum', 'enm', 'frm', 'gmh', 'mga', 'akk', 'phn', 'zxx', 'got', 'und', ];
|
||||
|
||||
private $availableLanguages;
|
||||
|
||||
/**
|
||||
* @var EntityManager
|
||||
*/
|
||||
private $entityManager;
|
||||
|
||||
// The regional version of language are language with _ in the code
|
||||
// This array contains regional code to not exclude
|
||||
private $regionalVersionToInclude = ['ro_MD'];
|
||||
@@ -50,10 +43,8 @@ class LoadAndUpdateLanguagesCommand extends Command
|
||||
*
|
||||
* @param $availableLanguages
|
||||
*/
|
||||
public function __construct(EntityManager $entityManager, $availableLanguages)
|
||||
public function __construct(private EntityManager $entityManager, private $availableLanguages)
|
||||
{
|
||||
$this->entityManager = $entityManager;
|
||||
$this->availableLanguages = $availableLanguages;
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user