File tree Expand file tree Collapse file tree 3 files changed +6
-10
lines changed
Expand file tree Collapse file tree 3 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -107,16 +107,6 @@ services:
107107 configPhpVersion : %phpVersion%
108108 autowired : false
109109
110- -
111- class : PHPStan\Analyser\ProcessedFilesCollector
112-
113- -
114- class : PHPStan\Analyser\ProcessedFilesDiagnoseExtension
115- arguments :
116- simpleRelativePathHelper : @simpleRelativePathHelper
117- tags :
118- - phpstan.diagnoseExtension
119-
120110 # not registered using attributes because there is 2+ instances
121111 -
122112 class : PHPStan\Type\Php\ReflectionGetAttributesMethodReturnTypeExtension
Original file line number Diff line number Diff line change 22
33namespace PHPStan \Analyser ;
44
5+ use PHPStan \DependencyInjection \AutowiredService ;
56use function array_count_values ;
67use function array_slice ;
78use function arsort ;
89
10+ #[AutowiredService]
911final class ProcessedFilesCollector
1012{
1113
Original file line number Diff line number Diff line change 33namespace PHPStan \Analyser ;
44
55use PHPStan \Command \Output ;
6+ use PHPStan \DependencyInjection \AutowiredParameter ;
7+ use PHPStan \DependencyInjection \AutowiredService ;
68use PHPStan \Diagnose \DiagnoseExtension ;
79use PHPStan \File \RelativePathHelper ;
810use function count ;
911use function sprintf ;
1012
13+ #[AutowiredService]
1114final class ProcessedFilesDiagnoseExtension implements DiagnoseExtension
1215{
1316
1417 public function __construct (
1518 private ProcessedFilesCollector $ processedFilesCollector ,
19+ #[AutowiredParameter(ref: '@simpleRelativePathHelper ' )]
1620 private RelativePathHelper $ simpleRelativePathHelper ,
1721 )
1822 {
You can’t perform that action at this time.
0 commit comments