diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2021-05-08 19:18:38 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2021-05-08 19:18:38 +0200 |
commit | 4977a733b6f614de868fc405b820d5c66e5bf9b7 (patch) | |
tree | fb033d693061bc22d069aa591e9dadf94c2a54b2 /includes/band.php | |
parent | 22397366614e9d80eed49d28994c5801e8821d27 (diff) | |
download | gigologadmin-4977a733b6f614de868fc405b820d5c66e5bf9b7.tar.gz gigologadmin-4977a733b6f614de868fc405b820d5c66e5bf9b7.tar.bz2 gigologadmin-4977a733b6f614de868fc405b820d5c66e5bf9b7.zip |
Auto fixup missing return types by Psalm
Diffstat (limited to 'includes/band.php')
-rw-r--r-- | includes/band.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/includes/band.php b/includes/band.php index 14daa18..81b275a 100644 --- a/includes/band.php +++ b/includes/band.php @@ -46,7 +46,7 @@ if ( !class_exists('GiglogAdmin_Band') ) { return $band; } - static function find($name, $country) + static function find($name, $country): ?self { global $wpdb; @@ -83,6 +83,11 @@ if ( !class_exists('GiglogAdmin_Band') ) { return ($results); } + /** + * @return array|string + * + * @psalm-return array{0: mixed, 1: mixed}|string + */ static function get_band($bid) { global $wpdb; @@ -116,7 +121,7 @@ if ( !class_exists('GiglogAdmin_Band') ) { return ($wpdb->last_error); } - public function save() + public function save(): void { global $wpdb; |