Skip to content

Commit 6ab21f8

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

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

WordPressVIPMinimum/Sniffs/Performance/NoPagingSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class NoPagingSniff extends AbstractArrayAssignmentRestrictionsSniff {
2323
/**
2424
* Groups of variables to restrict.
2525
*
26-
* @return array
26+
* @return array<string, array<string, string|array<string>>>
2727
*/
2828
public function getGroups() {
2929
return [

WordPressVIPMinimum/Sniffs/Performance/OrderByRandSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class OrderByRandSniff extends AbstractArrayAssignmentRestrictionsSniff {
2424
/**
2525
* Groups of variables to restrict.
2626
*
27-
* @return array
27+
* @return array<string, array<string, string|array<string>>>
2828
*/
2929
public function getGroups() {
3030
return [

WordPressVIPMinimum/Sniffs/Performance/RegexpCompareSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class RegexpCompareSniff extends AbstractArrayAssignmentRestrictionsSniff {
1818
/**
1919
* Groups of variables to restrict.
2020
*
21-
* @return array
21+
* @return array<string, array<string, string|array<string>>>
2222
*/
2323
public function getGroups() {
2424
return [

WordPressVIPMinimum/Sniffs/Performance/RemoteRequestTimeoutSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class RemoteRequestTimeoutSniff extends AbstractArrayAssignmentRestrictionsSniff
1717
/**
1818
* Groups of variables to restrict.
1919
*
20-
* @return array
20+
* @return array<string, array<string, string|array<string>>>
2121
*/
2222
public function getGroups() {
2323
return [

WordPressVIPMinimum/Sniffs/Performance/WPQueryParamsSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class WPQueryParamsSniff extends AbstractArrayAssignmentRestrictionsSniff {
2828
/**
2929
* Groups of variables to restrict.
3030
*
31-
* @return array
31+
* @return array<string, array<string, string|array<string>>>
3232
*/
3333
public function getGroups() {
3434
return [

0 commit comments

Comments
 (0)