Skip to content

Commit 02b07fa

Browse files
committed
Docs: improve consistency and specificity [3]
This fixes up the `@return` type declarations for all `AbstractVariableRestrictionsSniff::getGroups()` methods.
1 parent 3a56af3 commit 02b07fa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

WordPressVIPMinimum/Sniffs/AbstractVariableRestrictionsSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public function register() {
9191
* )
9292
* )
9393
*
94-
* @return array
94+
* @return array<string, array<string, string|array<string>>>
9595
*/
9696
abstract public function getGroups();
9797

WordPressVIPMinimum/Sniffs/Variables/RestrictedVariablesSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class RestrictedVariablesSniff extends AbstractVariableRestrictionsSniff {
3131
* )
3232
* )
3333
*
34-
* @return array
34+
* @return array<string, array<string, string|array<string>>>
3535
*/
3636
public function getGroups() {
3737
return [

0 commit comments

Comments
 (0)