From 858d54755113876887df38a1be80d30506468c02 Mon Sep 17 00:00:00 2001 From: Austin Passy <367897+thefrosty@users.noreply.github.com> Date: Fri, 23 Jun 2023 09:26:51 -0700 Subject: [PATCH] Php8 updates --- src/Settings/FieldManager.php | 8 +++++--- src/Settings/SectionManager.php | 8 +++++--- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/Settings/FieldManager.php b/src/Settings/FieldManager.php index da5caf0..14334f4 100755 --- a/src/Settings/FieldManager.php +++ b/src/Settings/FieldManager.php @@ -1,4 +1,6 @@ -getSectionId()][] = $field; } diff --git a/src/Settings/SectionManager.php b/src/Settings/SectionManager.php index 7eb346b..bbb4189 100755 --- a/src/Settings/SectionManager.php +++ b/src/Settings/SectionManager.php @@ -1,4 +1,6 @@ - $settings_sections */ protected static array $settings_sections = []; @@ -37,7 +39,7 @@ public function __construct(WpSettingsApi $wp_settings_api) * Set settings sections * @param SettingSection[] $sections An array of SettingSection objects. */ - public function setSections(array $sections) + public function setSections(array $sections): void { self::$settings_sections[$this->wp_settings_api->getPluginInfo()->getMenuSlug()] = $sections; }