summaryrefslogtreecommitdiffstats
path: root/includes/band.php
diff options
context:
space:
mode:
authorAndreaChirulescu <andrea.chirulescu@gmail.com>2021-05-09 21:58:23 +0200
committerAndreaChirulescu <andrea.chirulescu@gmail.com>2021-05-09 21:58:23 +0200
commit11570d3e87707396674bdf5179df48c641bb154d (patch)
tree5c4677689569dbece70de222d1869b4049698f6d /includes/band.php
parentcfc0341c66e5c24ee4c1b8a8e53afac99587244b (diff)
parent142ff436282844677b8b4e7d8ececd44440ec96d (diff)
downloadgigologadmin-11570d3e87707396674bdf5179df48c641bb154d.tar.gz
gigologadmin-11570d3e87707396674bdf5179df48c641bb154d.tar.bz2
gigologadmin-11570d3e87707396674bdf5179df48c641bb154d.zip
Tried to fix the psalm local changes done when I manually installed it
Diffstat (limited to 'includes/band.php')
-rw-r--r--includes/band.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/includes/band.php b/includes/band.php
index 14daa18..3460acb 100644
--- a/includes/band.php
+++ b/includes/band.php
@@ -25,7 +25,7 @@ if ( !class_exists('GiglogAdmin_Band') ) {
$this->country = isset($attrs->wpgband_country) ? $attrs->wpgband_country : 'NO';
}
- static function create($bandname, $country = 'NO')
+ static function create($bandname, $country = 'NO'): self
{
$band = GiglogAdmin_Band::find($bandname, $country);
@@ -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;