Skip to content

Commit 21a5350

Browse files
committed
Ensure all @param array tags explain the structure of the array
1 parent c17ed01 commit 21a5350

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

WordPress/Sniffs/WP/OptionAutoloadSniff.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -179,11 +179,11 @@ final class OptionAutoloadSniff extends AbstractFunctionParameterSniff {
179179
*
180180
* @since 3.2.0
181181
*
182-
* @param int $stackPtr The position of the current token in the stack.
183-
* @param string $group_name The name of the group which was matched.
184-
* @param string $function_name The token content (function name) which was matched
185-
* in lowercase.
186-
* @param array $parameters Array with information about the parameters.
182+
* @param int $stackPtr The position of the current token in the stack.
183+
* @param string $group_name The name of the group which was matched.
184+
* @param string $function_name The token content (function name) which was matched
185+
* in lowercase.
186+
* @param array<int, array<string, int|string>> $parameters Array with information about the parameters.
187187
*
188188
* @return void
189189
*/
@@ -232,7 +232,7 @@ public function process_no_parameters( $stackPtr, $group_name, $function_name )
232232
*
233233
* @since 3.2.0
234234
*
235-
* @param array $options_param Options parameter information.
235+
* @param array<string, int|string> $options_param Options parameter information.
236236
*
237237
* @return void
238238
*/
@@ -311,10 +311,10 @@ private function maybe_display_missing_autoload_warning( $stackPtr, $function_na
311311
*
312312
* @since 3.2.0
313313
*
314-
* @param array $autoload_info Information about the autoload value (start and end tokens,
315-
* the clean value and potentially the "raw" value - which isn't used).
316-
* @param string $function_name The token content (function name) which was matched
317-
* in lowercase.
314+
* @param array<string, int|string> $autoload_info Information about the autoload value (start and end tokens, the
315+
* clean value and potentially the "raw" value - which isn't used).
316+
* @param string $function_name The token content (function name) which was matched
317+
* in lowercase.
318318
*
319319
* @return void
320320
*/

0 commit comments

Comments
 (0)