PHP7 type annotations

This commit is contained in:
Shish
2017-09-19 18:55:43 +01:00
parent c7ca2f4154
commit 977c3db1e3
98 changed files with 624 additions and 1986 deletions

View File

@@ -127,12 +127,7 @@ class ShimmieApi extends Extension {
return $res;
}
/**
* @param string $type
* @param string $query
* @return array
*/
private function api_get_user($type, $query) {
private function api_get_user(string $type, string $query): array {
global $database;
$all = $database->get_row(
"SELECT id, name, joindate, class FROM users WHERE $type=?",