diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2022-03-10 16:30:52 +0100 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2022-03-10 16:30:52 +0100 |
commit | 1a1ed1031f251e4c9fcf978669370961177fe361 (patch) | |
tree | 4bafe21e68aae03d1a77dc4c284e8da4b2e8f06a /includes/venue.php | |
parent | 921608c01ab530a2fbb3057e5ebbbcb2112698d4 (diff) | |
download | gigologadmin-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.php | 2 |
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, |