diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2021-05-08 20:50:39 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2021-05-08 20:55:59 +0200 |
commit | 30f12e61317d9b181efb46382a4db98d73f65954 (patch) | |
tree | f98c5695836a8d04367a7a1969b12903402f7d7b /includes/admin/views/giglog_admin_page.php | |
parent | 88de0f55d7499009f0f316262757e70385d43ce5 (diff) | |
download | gigologadmin-30f12e61317d9b181efb46382a4db98d73f65954.tar.gz gigologadmin-30f12e61317d9b181efb46382a4db98d73f65954.tar.bz2 gigologadmin-30f12e61317d9b181efb46382a4db98d73f65954.zip |
Autofixes by Psalm
Diffstat (limited to 'includes/admin/views/giglog_admin_page.php')
-rw-r--r-- | includes/admin/views/giglog_admin_page.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/admin/views/giglog_admin_page.php b/includes/admin/views/giglog_admin_page.php index 85c4193..624566f 100644 --- a/includes/admin/views/giglog_admin_page.php +++ b/includes/admin/views/giglog_admin_page.php @@ -36,7 +36,7 @@ if ( !class_exists( 'GiglogAdmin_AdminPage' ) ) { echo(GiglogAdmin_AdminPage::editforms()); //not sure why it doesn't show without the echo? } - static function get_allvenues(int $invenue): string + static function get_allvenues( ?int $invenue ): string { $select = '<select name="selectvenueadmin">'; $select .= '<option value="">Please Select..</option>'; @@ -50,7 +50,7 @@ if ( !class_exists( 'GiglogAdmin_AdminPage' ) ) { } - static function get_user( int $cid, int $ctype): string + static function get_user( ?int $cid, string $ctype): string { $hf_user = wp_get_current_user(); $hf_username = $hf_user->user_login; @@ -419,7 +419,7 @@ if ( !class_exists( 'GiglogAdmin_AdminPage' ) ) { wp_mail( $to, $subject, $body, $headers ); } - static function returnuser($p1, $c): string + static function returnuser(string $p1, ?int $c): string { global $wpdb; $hf_user = wp_get_current_user(); |