summaryrefslogtreecommitdiffstats
path: root/includes/venue.php
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2022-03-10 16:30:52 +0100
committerHarald Eilertsen <haraldei@anduin.net>2022-03-10 16:30:52 +0100
commit1a1ed1031f251e4c9fcf978669370961177fe361 (patch)
tree4bafe21e68aae03d1a77dc4c284e8da4b2e8f06a /includes/venue.php
parent921608c01ab530a2fbb3057e5ebbbcb2112698d4 (diff)
downloadgigologadmin-1a1ed1031f251e4c9fcf978669370961177fe361.tar.gz
gigologadmin-1a1ed1031f251e4c9fcf978669370961177fe361.tar.bz2
gigologadmin-1a1ed1031f251e4c9fcf978669370961177fe361.zip
Fix misc errors detected by psalm.
- Lacking type info in venue.php - Potentially dereference null-objects in giglog_admin_page.php
Diffstat (limited to 'includes/venue.php')
-rw-r--r--includes/venue.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/venue.php b/includes/venue.php
index 5e9ecf9..3cbf884 100644
--- a/includes/venue.php
+++ b/includes/venue.php
@@ -60,7 +60,7 @@ if ( !class_exists('GiglogAdmin_Venue') ) {
return $results ? new GiglogAdmin_Venue($results[0]) : NULL;
}
- static function create($name, $city = 'Oslo'): self
+ static function create(string $name, string $city = 'Oslo'): self
{
$venue = new GiglogAdmin_Venue((object) [
'wpgvenue_name' => $name,