mirror of
https://github.com/vrana/adminer.git
synced 2025-08-06 14:46:36 +02:00
Doc-comments: Improve array @return
This commit is contained in:
@@ -46,14 +46,14 @@ abstract class SqlDriver {
|
||||
}
|
||||
|
||||
/** Get all types
|
||||
* @return array [$type => $maximum_unsigned_length, ...]
|
||||
* @return int[] [$type => $maximum_unsigned_length, ...]
|
||||
*/
|
||||
function types() {
|
||||
return call_user_func_array('array_merge', array_values($this->types));
|
||||
}
|
||||
|
||||
/** Get structured types
|
||||
* @return array [$description => [$type, ...], ...]
|
||||
* @return list<string>[] [$description => [$type, ...], ...]
|
||||
*/
|
||||
function structuredTypes() {
|
||||
return array_map('array_keys', $this->types);
|
||||
@@ -253,7 +253,7 @@ abstract class SqlDriver {
|
||||
}
|
||||
|
||||
/** Get supported engines
|
||||
* @return array
|
||||
* @return list<string>
|
||||
*/
|
||||
function engines() {
|
||||
return array();
|
||||
@@ -269,7 +269,7 @@ abstract class SqlDriver {
|
||||
|
||||
/** Get defined check constraints
|
||||
* @param string
|
||||
* @return array [$name => $clause]
|
||||
* @return string[] [$name => $clause]
|
||||
*/
|
||||
function checkConstraints($table) {
|
||||
// MariaDB contains CHECK_CONSTRAINTS.TABLE_NAME, MySQL and PostrgreSQL not
|
||||
|
Reference in New Issue
Block a user