diff --git a/Classes/EventStore/Storage/Doctrine/DoctrineEventStorage.php b/Classes/EventStore/Storage/Doctrine/DoctrineEventStorage.php index f51f5c6..8199cc8 100644 --- a/Classes/EventStore/Storage/Doctrine/DoctrineEventStorage.php +++ b/Classes/EventStore/Storage/Doctrine/DoctrineEventStorage.php @@ -249,9 +249,9 @@ public function getStatus(): Result return $result; } $result->addNotice(new Notice((string)$this->connection->getParams()['host'], null, [], 'Host')); - $result->addNotice(new Notice((string)$this->connection->getParams()['port'], null, [], 'Port')); + $result->addNotice(new Notice((string)($this->connection->getParams()['port'] ?? 'default'), null, [], 'Port')); $result->addNotice(new Notice((string)$this->connection->getDatabase(), null, [], 'Database')); - $result->addNotice(new Notice((string)$this->connection->getDriver()->getName(), null, [], 'Driver')); + $result->addNotice(new Notice((string)($this->connection->getParams()['driver'] ?? '?'), null, [], 'Driver')); $result->addNotice(new Notice((string)$this->connection->getParams()['user'], null, [], 'Username')); if ($tableExists) { $result->addNotice(new Notice('%s (exists)', null, [$this->eventTableName], 'Table'));