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
+4 -2
View File
@@ -87,14 +87,16 @@ class CombGeneratorTest extends TestCase
}
/**
* @phpcsSuppress SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingTraversableTypeHintSpecification
* @return array<array<positive-int>>
*/
public function lengthLessThanSix(): array
{
return [[0], [1], [2], [3], [4], [5]];
return [[1], [2], [3], [4], [5]];
}
/**
* @param positive-int $length
*
* @throws Exception
*
* @dataProvider lengthLessThanSix