mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-15 16:07:55 +03:00
Upgrade PHPStan
This commit is contained in:
@@ -28,10 +28,10 @@ use function substr;
|
||||
class DceSecurityGeneratorTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @param mixed $uid
|
||||
* @param mixed $gid
|
||||
* @param mixed $seconds
|
||||
* @param mixed $microseconds
|
||||
* @param int|string $uid
|
||||
* @param int|string $gid
|
||||
* @param int|string $seconds
|
||||
* @param int|string $microseconds
|
||||
*
|
||||
* @dataProvider provideValuesForDceSecurityGenerator
|
||||
*/
|
||||
@@ -49,11 +49,13 @@ class DceSecurityGeneratorTest extends TestCase
|
||||
string $expectedNode,
|
||||
string $expectedTimeMidHi
|
||||
): void {
|
||||
/** @var DceSecurityProviderInterface $dceSecurityProvider */
|
||||
$dceSecurityProvider = Mockery::mock(DceSecurityProviderInterface::class, [
|
||||
'getUid' => new IntegerObject($uid),
|
||||
'getGid' => new IntegerObject($gid),
|
||||
]);
|
||||
|
||||
/** @var NodeProviderInterface $nodeProvider */
|
||||
$nodeProvider = Mockery::mock(NodeProviderInterface::class, [
|
||||
'getNode' => new Hexadecimal($node),
|
||||
]);
|
||||
@@ -76,7 +78,7 @@ class DceSecurityGeneratorTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @phpcsSuppress SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingTraversableTypeHintSpecification
|
||||
* @return array<array{uid: int|string, node: string, seconds: int, microseconds: int, providedDomain: int, providedId: IntegerObject|null, providedNode: null, expectedId: string, expectedDomain: string, expectedNode: string, expectedTimeMidHi: string}>
|
||||
*/
|
||||
public function provideValuesForDceSecurityGenerator(): array
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user