chore: Remove types from const properties for PHP 8.2 compatibility
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
@@ -23,7 +23,7 @@ use Symfony\Component\Console\Output\OutputInterface;
|
||||
use Symfony\Component\Console\Question\ConfirmationQuestion;
|
||||
|
||||
class GenerateCommand extends Command implements CompletionAwareInterface {
|
||||
private const string TEMPLATE
|
||||
private const TEMPLATE
|
||||
= '<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
@@ -127,7 +127,7 @@ class PlatformRepository {
|
||||
return null;
|
||||
}
|
||||
|
||||
private const string MODIFIER_REGEX = '[._-]?(?:(stable|beta|b|RC|alpha|a|patch|pl|p)(?:[.-]?(\d+))?)?([.-]?dev)?';
|
||||
private const MODIFIER_REGEX = '[._-]?(?:(stable|beta|b|RC|alpha|a|patch|pl|p)(?:[.-]?(\d+))?)?([.-]?dev)?';
|
||||
|
||||
/**
|
||||
* Normalizes a version string to be able to perform comparisons on it
|
||||
|
||||
@@ -72,7 +72,7 @@ class Setup {
|
||||
$this->l10n = $l10nFactory->get('lib');
|
||||
}
|
||||
|
||||
private const array DB_SETUP_CLASSES = [
|
||||
private const DB_SETUP_CLASSES = [
|
||||
'mysql' => MySQL::class,
|
||||
'pgsql' => PostgreSQL::class,
|
||||
'oci' => OCI::class,
|
||||
|
||||
Reference in New Issue
Block a user