summaryrefslogtreecommitdiffstats
path: root/includes/venue.php
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2021-05-08 20:50:39 +0200
committerHarald Eilertsen <haraldei@anduin.net>2021-05-08 20:55:59 +0200
commit30f12e61317d9b181efb46382a4db98d73f65954 (patch)
treef98c5695836a8d04367a7a1969b12903402f7d7b /includes/venue.php
parent88de0f55d7499009f0f316262757e70385d43ce5 (diff)
downloadgigologadmin-30f12e61317d9b181efb46382a4db98d73f65954.tar.gz
gigologadmin-30f12e61317d9b181efb46382a4db98d73f65954.tar.bz2
gigologadmin-30f12e61317d9b181efb46382a4db98d73f65954.zip
Autofixes by Psalm
Diffstat (limited to 'includes/venue.php')
-rw-r--r--includes/venue.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/venue.php b/includes/venue.php
index ddd3d4a..0df0a58 100644
--- a/includes/venue.php
+++ b/includes/venue.php
@@ -43,7 +43,7 @@ if ( !class_exists('GiglogAdmin_Venue') ) {
return $venue;
}
- static function find_or_create($name, $city = 'Oslo')
+ static function find_or_create(string $name, string $city = 'Oslo'): self
{
global $wpdb;
$venuesql = 'SELECT * FROM wpg_venues WHERE upper(wpgvenue_name)=upper("' . $name . '")'.' and wpgvenue_city="'.$city.'"';
@@ -89,7 +89,7 @@ if ( !class_exists('GiglogAdmin_Venue') ) {
*
* @psalm-return array<array-key, self>
*/
- static function venues_in_city($city): array
+ static function venues_in_city(bool $city): array
{
global $wpdb;
$q = $wpdb->prepare(