Skip to content

Commit 86740fb

Browse files
committed
Remove unused parameter
1 parent 5ca8075 commit 86740fb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

WordPress/Sniffs/WP/OptionAutoloadSniff.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ public function process_parameters( $stackPtr, $group_name, $function_name, $par
201201
}
202202

203203
if ( 'wp_set_option_autoload_values' === $function_name ) {
204-
$this->handle_wp_set_option_autoload_values( $target_param, $stackPtr );
204+
$this->handle_wp_set_option_autoload_values( $target_param );
205205
return;
206206
}
207207

@@ -232,11 +232,10 @@ public function process_no_parameters( $stackPtr, $group_name, $function_name )
232232
* @since 3.2.0
233233
*
234234
* @param array $options_param Options parameter information.
235-
* @param int $stackPtr The position of the current token in the stack.
236235
*
237236
* @return void
238237
*/
239-
private function handle_wp_set_option_autoload_values( array $options_param, $stackPtr ) {
238+
private function handle_wp_set_option_autoload_values( array $options_param ) {
240239
$array_token = $this->phpcsFile->findNext(
241240
Tokens::$emptyTokens,
242241
$options_param['start'],

0 commit comments

Comments
 (0)