Skip to content

Commit dc5a0f4

Browse files
committed
Tests/ErrorSuppressionTest: improve doc type specificity
1 parent f66c323 commit dc5a0f4

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

tests/Core/ErrorSuppressionTest.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function testSuppressError($before, $after, $expectedErrors=0)
6363
*
6464
* @see testSuppressError()
6565
*
66-
* @return array
66+
* @return array<string, array<string, string|int>>
6767
*/
6868
public static function dataSuppressError()
6969
{
@@ -202,7 +202,7 @@ public function testSuppressSomeErrors($before, $between, $expectedErrors=1)
202202
*
203203
* @see testSuppressSomeErrors()
204204
*
205-
* @return array
205+
* @return array<string, array<string, string|int>>
206206
*/
207207
public static function dataSuppressSomeErrors()
208208
{
@@ -294,7 +294,7 @@ public function testSuppressWarning($before, $after, $expectedWarnings=0)
294294
*
295295
* @see testSuppressWarning()
296296
*
297-
* @return array
297+
* @return array<string, array<string, string|int>>
298298
*/
299299
public static function dataSuppressWarning()
300300
{
@@ -379,7 +379,7 @@ public function testSuppressLine($before, $after='', $expectedErrors=1)
379379
*
380380
* @see testSuppressLine()
381381
*
382-
* @return array
382+
* @return array<string, array<string, string|int>>
383383
*/
384384
public static function dataSuppressLine()
385385
{
@@ -544,7 +544,7 @@ public function testNestedSuppressLine($before, $after)
544544
*
545545
* @see testNestedSuppressLine()
546546
*
547-
* @return array
547+
* @return array<string, array<string, string>>
548548
*/
549549
public static function dataNestedSuppressLine()
550550
{
@@ -639,7 +639,7 @@ function myFunction() {
639639
*
640640
* @see testSuppressScope()
641641
*
642-
* @return array
642+
* @return array<string, array<string, string|int>>
643643
*/
644644
public static function dataSuppressScope()
645645
{
@@ -734,7 +734,7 @@ class MyClass {}
734734
*
735735
* @see testSuppressFile()
736736
*
737-
* @return array
737+
* @return array<string, array<string, string|int>>
738738
*/
739739
public static function dataSuppressFile()
740740
{
@@ -853,7 +853,7 @@ public function testDisableSelected($before, $expectedErrors=0, $expectedWarning
853853
*
854854
* @see testDisableSelected()
855855
*
856-
* @return array
856+
* @return array<string, array<string, string|int>>
857857
*/
858858
public static function dataDisableSelected()
859859
{
@@ -966,7 +966,7 @@ public function testEnableSelected($code, $expectedErrors, $expectedWarnings)
966966
*
967967
* @see testEnableSelected()
968968
*
969-
* @return array
969+
* @return array<string, array<string, string|int>>
970970
*/
971971
public static function dataEnableSelected()
972972
{
@@ -1146,7 +1146,7 @@ public function testIgnoreSelected($before, $expectedErrors, $expectedWarnings)
11461146
*
11471147
* @see testIgnoreSelected()
11481148
*
1149-
* @return array
1149+
* @return array<string, array<string, string|int>>
11501150
*/
11511151
public static function dataIgnoreSelected()
11521152
{
@@ -1233,7 +1233,7 @@ public function testCommenting($code, $expectedErrors, $expectedWarnings)
12331233
*
12341234
* @see testCommenting()
12351235
*
1236-
* @return array
1236+
* @return array<string, array<string, string|int>>
12371237
*/
12381238
public static function dataCommenting()
12391239
{

0 commit comments

Comments
 (0)