apply rules rector up to php82

This commit is contained in:
2023-05-01 21:39:45 +02:00
parent 81e8928344
commit 6d63177ff4
733 changed files with 1257 additions and 1322 deletions

View File

@@ -26,9 +26,9 @@ use function in_array;
*/
class LoadAndUpdateLanguagesCommand extends Command
{
public const INCLUDE_ANCIENT = 'include_ancient';
final public const INCLUDE_ANCIENT = 'include_ancient';
public const INCLUDE_REGIONAL_VERSION = 'include_regional';
final public const INCLUDE_REGIONAL_VERSION = 'include_regional';
// Array of ancien languages (to exclude)
private $ancientToExclude = ['ang', 'egy', 'fro', 'goh', 'grc', 'la', 'non', 'peo', 'pro', 'sga',
@@ -43,7 +43,7 @@ class LoadAndUpdateLanguagesCommand extends Command
*
* @param $availableLanguages
*/
public function __construct(private EntityManager $entityManager, private $availableLanguages)
public function __construct(private readonly EntityManager $entityManager, private $availableLanguages)
{
parent::__construct();
}