summaryrefslogtreecommitdiffstats
path: root/includes/concert.php
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2021-05-08 19:18:38 +0200
committerHarald Eilertsen <haraldei@anduin.net>2021-05-08 19:18:38 +0200
commit4977a733b6f614de868fc405b820d5c66e5bf9b7 (patch)
treefb033d693061bc22d069aa591e9dadf94c2a54b2 /includes/concert.php
parent22397366614e9d80eed49d28994c5801e8821d27 (diff)
downloadgigologadmin-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.php7
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;