1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-08 15:47:00 +02:00

Explicitly mark nullable params (thanks to @dg)

This commit is contained in:
Jakub Vrana
2025-04-01 19:14:44 +02:00
parent 01ea001f22
commit 04ed73be26
3 changed files with 7 additions and 7 deletions

View File

@@ -9,7 +9,7 @@ namespace Adminer;
* @param int|numeric-string $limit
* @return string[] $orgtables
*/
function print_select_result($result, Db $connection2 = null, array $orgtables = array(), $limit = 0): array {
function print_select_result($result, ?Db $connection2 = null, array $orgtables = array(), $limit = 0): array {
$links = array(); // colno => orgtable - create links from these columns
$indexes = array(); // orgtable => array(column => colno) - primary keys
$columns = array(); // orgtable => array(column => ) - not selected columns in primary key