mirror of
https://github.com/vrana/adminer.git
synced 2025-08-07 15:16:44 +02:00
Doc-comments: Fix type errors
This commit is contained in:
@@ -124,7 +124,7 @@ if (isset($_GET["elastic"])) {
|
||||
);
|
||||
}
|
||||
|
||||
function select(string $table, array $select, array $where, array $group, array $order = array(), $limit = 1, int $page = 0, bool $print = false) {
|
||||
function select(string $table, array $select, array $where, array $group, array $order = array(), $limit = 1, ?int $page = 0, bool $print = false) {
|
||||
$data = array();
|
||||
if ($select != array("*")) {
|
||||
$data["fields"] = array_values($select);
|
||||
|
@@ -322,7 +322,7 @@ if (isset($_GET["mongo"])) {
|
||||
|
||||
public $primary = "_id";
|
||||
|
||||
function select(string $table, array $select, array $where, array $group, array $order = array(), $limit = 1, int $page = 0, bool $print = false) {
|
||||
function select(string $table, array $select, array $where, array $group, array $order = array(), $limit = 1, ?int $page = 0, bool $print = false) {
|
||||
$select = ($select == array("*")
|
||||
? array()
|
||||
: array_fill_keys($select, 1)
|
||||
|
@@ -145,7 +145,7 @@ if (isset($_GET["simpledb"])) {
|
||||
return $return;
|
||||
}
|
||||
|
||||
function select(string $table, array $select, array $where, array $group, array $order = array(), $limit = 1, int $page = 0, bool $print = false) {
|
||||
function select(string $table, array $select, array $where, array $group, array $order = array(), $limit = 1, ?int $page = 0, bool $print = false) {
|
||||
$connection = connection();
|
||||
$connection->next = $_GET["next"];
|
||||
$return = parent::select($table, $select, $where, $group, $order, $limit, $page, $print);
|
||||
|
Reference in New Issue
Block a user