fix(setupCheck): Fix checking database type

Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
This commit is contained in:
Git'Fellow 2025-10-15 20:15:55 +02:00 committed by GitHub
parent 50f287402a
commit 3f976c2548
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -34,8 +34,8 @@ class MysqlRowFormat implements ISetupCheck {
}
public function run(): SetupResult {
if (!$this->connection->getDatabaseProvider() === IDBConnection::PLATFORM_MYSQL
&& !$this->connection->getDatabaseProvider() === IDBConnection::PLATFORM_MARIADB) {
$provider = $this->connection->getDatabaseProvider();
if (!in_array($provider, [IDBConnection::PLATFORM_MYSQL, IDBConnection::PLATFORM_MARIADB], true)) {
return SetupResult::success($this->l10n->t('You are not using MySQL'));
}