From 3b8d9a7248b04b3466339d812f2b978348e0c5fa Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 21 Jun 2022 17:54:23 +0200 Subject: [PATCH] Use protected $this->logger instead --- tests/Util/Database/StaticDatabase.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/Util/Database/StaticDatabase.php b/tests/Util/Database/StaticDatabase.php index 5be4776ee2..22c44affda 100644 --- a/tests/Util/Database/StaticDatabase.php +++ b/tests/Util/Database/StaticDatabase.php @@ -21,7 +21,6 @@ namespace Friendica\Test\Util\Database; -use Friendica\Core\Logger; use Friendica\Database\Database; use Friendica\Database\DatabaseException; use PDO; @@ -46,7 +45,7 @@ class StaticDatabase extends Database /** * Override the behaviour of connect, due there is just one, static connection at all * - * @return bool|void + * @return bool Success */ public function connect(): bool { @@ -181,7 +180,7 @@ class StaticDatabase extends Database self::$staticConnection->setAttribute(PDO::ATTR_AUTOCOMMIT,0); } catch (PDOException $e) { // Log exception - Logger::error('Cannot establish database connection', ['exception' => $e, 'host' => $server, 'dbname' => $db]); + $this->logger::error('Cannot establish database connection', ['exception' => $e, 'host' => $server, 'dbname' => $db]); } } -- 2.39.5