Skip to content
Snippets Groups Projects
Commit 5dc9a0b8 authored by Larry Garfield's avatar Larry Garfield
Browse files

Fix type hint in tablesort class.

parent b5de1873
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -144,7 +144,7 @@ final public static function getLog($logging_key, $key = 'default') {
* @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) {
......
<?php
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment