mirror of
https://github.com/vrana/adminer.git
synced 2025-12-22 16:30:40 +01:00
Doc-comment: Improve array @param
This uses syntax from https://phpstan.org/writing-php-code/phpdoc-types#general-arrays. int[] means an array of ints with arbitrary keys (usually strings) list<string> means an array of strings with sequential integer keys starting at 0 list<string>[] means an arbitrary array of string lists list<string[]> means list of arbitrary string arrays string[][] means two dimensional array with arbitrary keys in both dimensions array was left in the comments for https://phpstan.org/writing-php-code/phpdoc-types#array-shapes
This commit is contained in:
@@ -10,7 +10,7 @@ class AdminerDatabaseHide {
|
||||
protected $disabled;
|
||||
|
||||
/**
|
||||
* @param array case insensitive database names in values
|
||||
* @param list<string> case insensitive database names in values
|
||||
*/
|
||||
function __construct($disabled) {
|
||||
$this->disabled = array_map('strtolower', $disabled);
|
||||
|
||||
Reference in New Issue
Block a user