From 3ed2fa2f811b42752b4db7a03b65bfe08d32ae63 Mon Sep 17 00:00:00 2001 From: kagg-design Date: Wed, 26 Jul 2023 17:35:51 +0300 Subject: [PATCH] Fix add_filter type hints in Settings. --- src/php/Settings/Abstracts/SettingsBase.php | 13 ++++++------ src/php/Settings/Settings.php | 22 +++++++++++++++++++-- 2 files changed, 27 insertions(+), 8 deletions(-) diff --git a/src/php/Settings/Abstracts/SettingsBase.php b/src/php/Settings/Abstracts/SettingsBase.php index 81fc07c6..1017f49c 100644 --- a/src/php/Settings/Abstracts/SettingsBase.php +++ b/src/php/Settings/Abstracts/SettingsBase.php @@ -270,13 +270,14 @@ protected function is_tab(): bool { /** * Add link to plugin setting page on plugins page. * - * @param array $actions An array of plugin action links. - * By default, this can include 'activate', 'deactivate', and 'delete'. - * With Multisite active this can also include 'network_active' and 'network_only' items. + * @param array|mixed $actions An array of plugin action links. + * By default, this can include 'activate', 'deactivate', and 'delete'. + * With Multisite active this can also include 'network_active' and 'network_only' + * items. * * @return array|string[] Plugin links */ - public function add_settings_link( array $actions ): array { + public function add_settings_link( $actions ): array { $new_actions = [ 'settings' => '