Upgrade PHPStan

This commit is contained in:
Ben Ramsey
2022-08-05 14:34:17 -05:00
parent 373f7bacfc
commit f1891183f9
26 changed files with 151 additions and 106 deletions
+7 -5
View File
@@ -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
{