Specify length as a positive-int

This commit is contained in:
Ben Ramsey
2022-03-27 13:51:50 -05:00
parent 18688488e1
commit 2fad6c1107
3 changed files with 8 additions and 4 deletions
+3 -1
View File
@@ -15,7 +15,7 @@ use function hex2bin;
class RandomBytesGeneratorTest extends TestCase
{
/**
* @phpcsSuppress SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingTraversableTypeHintSpecification
* @return array<array{positive-int, string}>
*/
public function lengthAndHexDataProvider(): array
{
@@ -27,6 +27,8 @@ class RandomBytesGeneratorTest extends TestCase
}
/**
* @param positive-int $length
*
* @throws Exception
*
* @dataProvider lengthAndHexDataProvider