mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-16 16:17:43 +03:00
Specify length as a positive-int
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user