File tree 5 files changed +25
-23
lines changed
5 files changed +25
-23
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ includes:
7
7
- phar://phpstan.phar/conf/bleedingEdge.neon
8
8
9
9
parameters :
10
- excludes_analyse :
10
+ excludePaths :
11
11
- tests/tmp/*
12
12
- tests/*/Example*.php
13
13
- tests/*/console_application_loader.php
Original file line number Diff line number Diff line change 6
6
use PHPStan \Rules \Rule ;
7
7
use PHPStan \Symfony \ConsoleApplicationResolver ;
8
8
use PHPStan \Testing \RuleTestCase ;
9
- use PHPStan \Type \Symfony \ArgumentTypeSpecifyingExtension ;
10
9
11
10
/**
12
11
* @extends RuleTestCase<UndefinedArgumentRule>
@@ -19,16 +18,6 @@ protected function getRule(): Rule
19
18
return new UndefinedArgumentRule (new ConsoleApplicationResolver (__DIR__ . '/console_application_loader.php ' ), new Standard ());
20
19
}
21
20
22
- /**
23
- * @return \PHPStan\Type\MethodTypeSpecifyingExtension[]
24
- */
25
- protected function getMethodTypeSpecifyingExtensions (): array
26
- {
27
- return [
28
- new ArgumentTypeSpecifyingExtension (new Standard ()),
29
- ];
30
- }
31
-
32
21
public function testGetArgument (): void
33
22
{
34
23
$ this ->analyse (
@@ -44,4 +33,11 @@ public function testGetArgument(): void
44
33
);
45
34
}
46
35
36
+ public static function getAdditionalConfigFiles (): array
37
+ {
38
+ return [
39
+ __DIR__ . '/argument.neon ' ,
40
+ ];
41
+ }
42
+
47
43
}
Original file line number Diff line number Diff line change 6
6
use PHPStan \Rules \Rule ;
7
7
use PHPStan \Symfony \ConsoleApplicationResolver ;
8
8
use PHPStan \Testing \RuleTestCase ;
9
- use PHPStan \Type \Symfony \OptionTypeSpecifyingExtension ;
10
9
11
10
/**
12
11
* @extends RuleTestCase<UndefinedOptionRule>
@@ -19,16 +18,6 @@ protected function getRule(): Rule
19
18
return new UndefinedOptionRule (new ConsoleApplicationResolver (__DIR__ . '/console_application_loader.php ' ), new Standard ());
20
19
}
21
20
22
- /**
23
- * @return \PHPStan\Type\MethodTypeSpecifyingExtension[]
24
- */
25
- protected function getMethodTypeSpecifyingExtensions (): array
26
- {
27
- return [
28
- new OptionTypeSpecifyingExtension (new Standard ()),
29
- ];
30
- }
31
-
32
21
public function testGetArgument (): void
33
22
{
34
23
$ this ->analyse (
@@ -44,4 +33,11 @@ public function testGetArgument(): void
44
33
);
45
34
}
46
35
36
+ public static function getAdditionalConfigFiles (): array
37
+ {
38
+ return [
39
+ __DIR__ . '/option.neon ' ,
40
+ ];
41
+ }
42
+
47
43
}
Original file line number Diff line number Diff line change
1
+ services :
2
+ -
3
+ class : PHPStan\Type\Symfony\ArgumentTypeSpecifyingExtension
4
+ tags :
5
+ - phpstan.typeSpecifier.methodTypeSpecifyingExtension
Original file line number Diff line number Diff line change
1
+ services :
2
+ -
3
+ class : PHPStan\Type\Symfony\OptionTypeSpecifyingExtension
4
+ tags :
5
+ - phpstan.typeSpecifier.methodTypeSpecifyingExtension
You can’t perform that action at this time.
0 commit comments