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:
Côme Chilliet 2026-03-17 15:15:55 +01:00
parent cd2d09de64
commit 6b49aa792b
No known key found for this signature in database
GPG key ID: A3E2F658B28C760A
3 changed files with 3 additions and 3 deletions

View file

@ -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);

View file

@ -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

View file

@ -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,