mirror of
https://github.com/vrana/adminer.git
synced 2025-08-06 22:56:46 +02:00
Doc-comment: Use type aliases for arrays
Type aliases could be defined either globally (https://phpstan.org/writing-php-code/phpdoc-types#global-type-aliases) or just for a class. I prefer having them at the place where they are created.
This commit is contained in:
@@ -15,7 +15,7 @@ function email_header($header) {
|
||||
* @param string
|
||||
* @param string
|
||||
* @param string
|
||||
* @param array[]
|
||||
* @param array{error:list<int>, type:list<string>, name:list<string>}
|
||||
* @return bool
|
||||
*/
|
||||
function send_mail($email, $subject, $message, $from = "", $files = array()) {
|
||||
@@ -47,7 +47,7 @@ function send_mail($email, $subject, $message, $from = "", $files = array()) {
|
||||
}
|
||||
|
||||
/** Check whether the column looks like boolean
|
||||
* @param array single field returned from fields()
|
||||
* @param Field single field returned from fields()
|
||||
* @return bool
|
||||
*/
|
||||
function like_bool($field) {
|
||||
|
Reference in New Issue
Block a user