Skip to content

Commit 8d6bf87

Browse files
committed
Undo DatabaseCollector::getServerInfo method deprecation
1 parent 245d163 commit 8d6bf87

1 file changed

Lines changed: 1 addition & 12 deletions

File tree

src/Debug/DatabaseCollector.php

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -49,20 +49,9 @@ public function setServerInfo(string $serverInfo) : void
4949
$this->serverInfo = $serverInfo;
5050
}
5151

52-
/**
53-
* @return string
54-
*
55-
* @deprecated Use {@see Database::getConnection()}
56-
*
57-
* @codeCoverageIgnore
58-
*/
5952
public function getServerInfo() : string
6053
{
61-
\trigger_error(
62-
'Method ' . __METHOD__ . ' is deprecated',
63-
\E_USER_DEPRECATED
64-
);
65-
return $this->serverInfo;
54+
return $this->database->getConnection()->server_info;
6655
}
6756

6857
public function getActivities() : array

0 commit comments

Comments
 (0)