Skip to content

Commit 7193144

Browse files
committed
Added tests folder to phpstan
1 parent 4409296 commit 7193144

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

phpstan.neon

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ parameters:
44
checkMissingCallableSignature: true
55
paths:
66
- src
7+
- tests

tests/lib/PhpCsFixer/InternalConfigFactoryTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ protected function setUp(): void
3737

3838
/**
3939
* @dataProvider provideRuleSetTestCases
40+
*
41+
* @param array{name: string, version: string, pretty_version?: string} $package
42+
* @param class-string $expectedRuleSetClass
4043
*/
4144
public function testVersionBasedRuleSetSelection(
4245
array $package,
@@ -47,6 +50,9 @@ public function testVersionBasedRuleSetSelection(
4750
self::assertInstanceOf($expectedRuleSetClass, $ruleSet);
4851
}
4952

53+
/**
54+
* @return array<string, array{0: array{name: string, version: string, pretty_version?: string}, 1: class-string}>
55+
*/
5056
public function provideRuleSetTestCases(): array
5157
{
5258
return [

tests/lib/PhpCsFixer/Rule/MultilineParametersFixerTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ public function testFix(
3434
self::assertSame($expected, $tokens->generateCode());
3535
}
3636

37+
/**
38+
* @return iterable<string, array{0: string, 1: string}>
39+
*/
3740
public static function provideFixCases(): iterable
3841
{
3942
yield 'single parameter should not be modified' => [

0 commit comments

Comments
 (0)