Skip to content

Commit 2df1bb9

Browse files
committed
Fixed psalm errors.
1 parent d94c996 commit 2df1bb9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/hwp-previews/src/Admin/Settings_Page.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public static function init(): Settings_Page {
5959
/**
6060
* Fire off init action.
6161
*
62-
* @param Settings_Page $instance the instance of the plugin class.
62+
* @param \HWP\Previews\Admin\Settings_Page $instance the instance of the plugin class.
6363
*/
6464
do_action( 'hwp_previews_init', self::$instance );
6565

@@ -117,7 +117,7 @@ public function get_current_tab( array $post_types, string $tab = 'tab' ): strin
117117
if ( empty( $post_types ) ) {
118118
return '';
119119
}
120-
// phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Nonce verification not required for tab selection.
120+
// phpcs:ignore WordPress.Security.NonceVerification.Recommended, WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- Nonce verification not required for tab selection.
121121
$value = $_GET[ $tab ] ?? '';
122122
if ( ! is_string( $value ) || '' === $value ) {
123123
return (string) key( $post_types );

0 commit comments

Comments
 (0)