From 3986a83ccba01ec20c633fba1548516880f2d3c7 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Wed, 19 Jul 2023 16:44:16 -0400 Subject: [PATCH] add return types in matchplay.php --- matchplay.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/matchplay.php b/matchplay.php index 1697df7..9b22cb5 100644 --- a/matchplay.php +++ b/matchplay.php @@ -28,7 +28,7 @@ function create_block_matchplay_block_init(): void { add_action( 'admin_init', 'matchplay_register_settings' ); -function matchplay_register_settings() { +function matchplay_register_settings(): void { register_setting( 'matchplay', 'matchplay_options' ); add_settings_section( @@ -48,7 +48,7 @@ function matchplay_register_settings() { ); } -function matchplay_field_api_key_callback( $args ) { +function matchplay_field_api_key_callback( $args ): void { $options = get_option( 'matchplay_options' ); ?>