namespace Friendica\Test\Util\Database;
-use Friendica\Core\Logger;
use Friendica\Database\Database;
use Friendica\Database\DatabaseException;
use PDO;
/**
* Override the behaviour of connect, due there is just one, static connection at all
*
- * @return bool|void
+ * @return bool Success
*/
public function connect(): bool
{
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]);
}
}