Commit 5dc9a0b8 authored by Crell's avatar Crell

Fix type hint in tablesort class.

parent b5de1873
......@@ -144,7 +144,7 @@ abstract class Database {
* @param $key
* The database connection key. Defaults to NULL which means the active key.
* @return DatabaseConnection
* @return Connection
* The corresponding connection object.
final public static function getConnection($target = 'default', $key = NULL) {
use Drupal\Database\Connection;
use Drupal\Database\Query\SelectExtender;
use Drupal\Database\Query\SelectInterface;
......@@ -23,7 +24,7 @@ class TableSort extends SelectExtender {
protected $header = array();
public function __construct(SelectInterface $query, DatabaseConnection $connection) {
public function __construct(SelectInterface $query, Connection $connection) {
parent::__construct($query, $connection);
// Add convenience tag to mark that this is an extended query. We have to
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment