Skip to content

Commit

Permalink
Docs: improve type specificity
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfnl committed Apr 24, 2024
1 parent 4abf633 commit 7d5498b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Tests/Internal/Cache/GetClearTest.php
Expand Up @@ -422,7 +422,7 @@ public function testClearCache($id)
*
* @see testClearCache() For the array format.
*
* @return array
* @return array<string, array<string, int|string>>
*/
public static function dataClearCache()
{
Expand Down
2 changes: 1 addition & 1 deletion Tests/Internal/NoFileCache/GetClearTest.php
Expand Up @@ -286,7 +286,7 @@ public function testClearCache($id)
*
* @see testClearCache() For the array format.
*
* @return array
* @return array<string, array<string, int|string>>
*/
public static function dataClearCache()
{
Expand Down
22 changes: 11 additions & 11 deletions Tests/Utils/Numbers/NumberTypesTest.php
Expand Up @@ -131,8 +131,8 @@ public static function dataNotAString()
* @dataProvider dataNumbers
* @covers ::isDecimalInt
*
* @param string $input The input string.
* @param array $expected The expected output for the various functions.
* @param string $input The input string.
* @param array<string, bool> $expected The expected output for the various functions.
*
* @return void
*/
Expand All @@ -147,8 +147,8 @@ public function testIsDecimalInt($input, $expected)
* @dataProvider dataNumbers
* @covers ::isHexidecimalInt
*
* @param string $input The input string.
* @param array $expected The expected output for the various functions.
* @param string $input The input string.
* @param array<string, bool> $expected The expected output for the various functions.
*
* @return void
*/
Expand All @@ -163,8 +163,8 @@ public function testIsHexidecimalInt($input, $expected)
* @dataProvider dataNumbers
* @covers ::isBinaryInt
*
* @param string $input The input string.
* @param array $expected The expected output for the various functions.
* @param string $input The input string.
* @param array<string, bool> $expected The expected output for the various functions.
*
* @return void
*/
Expand All @@ -179,8 +179,8 @@ public function testIsBinaryInt($input, $expected)
* @dataProvider dataNumbers
* @covers ::isOctalInt
*
* @param string $input The input string.
* @param array $expected The expected output for the various functions.
* @param string $input The input string.
* @param array<string, bool> $expected The expected output for the various functions.
*
* @return void
*/
Expand All @@ -195,8 +195,8 @@ public function testIsOctalInt($input, $expected)
* @dataProvider dataNumbers
* @covers ::isFloat
*
* @param string $input The input string.
* @param array $expected The expected output for the various functions.
* @param string $input The input string.
* @param array<string, bool> $expected The expected output for the various functions.
*
* @return void
*/
Expand All @@ -214,7 +214,7 @@ public function testIsFloat($input, $expected)
* @see testIsOctalInt() For the array format.
* @see testIsDecimalFloat() For the array format.
*
* @return array
* @return array<string, array<string, string|array<string, bool>>>
*/
public static function dataNumbers()
{
Expand Down

0 comments on commit 7d5498b

Please sign in to comment.