Skip to content

Commit d4c2ef7

Browse files
committed
Tests: minor docs fixes
* Fix class description. * Improve type specificity in docblocks.
1 parent 9f34255 commit d4c2ef7

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

tests/Core/Config/ReportWidthTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ public function testReportWidthInputHandling($input, $expected)
255255
/**
256256
* Data provider.
257257
*
258-
* @return array
258+
* @return array<string, array<string, mixed>>
259259
*/
260260
public static function dataReportWidthInputHandling()
261261
{

tests/Core/Filters/AbstractFilterTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* Tests for the \PHP_CodeSniffer\Filters\GitModified class.
3+
* Abstract Testcase class for testing Filters.
44
*
55
* @author Juliette Reinders Folmer <phpcs_nospam@adviesenzo.nl>
66
* @copyright 2023 PHPCSStandards Contributors

tests/Core/Tokenizer/DoubleArrowTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function testDoubleArrow($testMarker)
4343
*
4444
* @see testDoubleArrow()
4545
*
46-
* @return array
46+
* @return array<string, array<string>>
4747
*/
4848
public static function dataDoubleArrow()
4949
{
@@ -128,7 +128,7 @@ public function testMatchArrow($testMarker)
128128
*
129129
* @see testMatchArrow()
130130
*
131-
* @return array
131+
* @return array<string, array<string>>
132132
*/
133133
public static function dataMatchArrow()
134134
{
@@ -215,7 +215,7 @@ public function testFnArrow($testMarker)
215215
*
216216
* @see testFnArrow()
217217
*
218-
* @return array
218+
* @return array<string, array<string>>
219219
*/
220220
public static function dataFnArrow()
221221
{

tests/Core/Tokenizer/ShortArrayTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function testSquareBrackets($testMarker)
4848
*
4949
* @see testSquareBrackets()
5050
*
51-
* @return array
51+
* @return array<string, array<string>>
5252
*/
5353
public static function dataSquareBrackets()
5454
{
@@ -116,7 +116,7 @@ public function testShortArrays($testMarker)
116116
*
117117
* @see testShortArrays()
118118
*
119-
* @return array
119+
* @return array<string, array<string>>
120120
*/
121121
public static function dataShortArrays()
122122
{

0 commit comments

Comments
 (0)