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/concert.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/concert.php')
-rw-r--r-- | includes/concert.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/includes/concert.php b/includes/concert.php index d95934e..f19a614 100644 --- a/includes/concert.php +++ b/includes/concert.php @@ -32,6 +32,9 @@ if ( !class_exists('GiglogAdmin_Concert') ) { } + /** + * @return null|self + */ static function find_cid($id) { global $wpdb; @@ -51,7 +54,7 @@ if ( !class_exists('GiglogAdmin_Concert') ) { } } - public static function create($name, $venue, $date, $ticketlink, $eventlink) + public static function create($name, $venue, $date, $ticketlink, $eventlink): ?self { if ( GiglogAdmin_Concert::find($name, $venue, $date) ) { error_log( 'DUPLICATE ROW detected: ' @@ -155,7 +158,7 @@ if ( !class_exists('GiglogAdmin_Concert') ) { return $wpdb->get_results($sql); } - public function save() + public function save(): void { global $wpdb; |