Skip to content

Commit e5e48ea

Browse files
staabmondrejmirtes
authored andcommitted
Drop inline @var
1 parent 0dbe3ab commit e5e48ea

File tree

7 files changed

+0
-15
lines changed

7 files changed

+0
-15
lines changed

src/Command/AnalyseCommand.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,6 @@ protected function execute(InputInterface $input, OutputInterface $output): int
225225
return $inceptionResult->handleReturn(0, null);
226226
}
227227

228-
/** @var AnalyseApplication $application */
229228
$application = $container->getByType(AnalyseApplication::class);
230229

231230
$debug = $input->getOption('debug');
@@ -436,7 +435,6 @@ protected function execute(InputInterface $input, OutputInterface $output): int
436435

437436
$inceptionResult->handleReturn(0, $analysisResult->getPeakMemoryUsageBytes());
438437

439-
/** @var FixerApplication $fixerApplication */
440438
$fixerApplication = $container->getByType(FixerApplication::class);
441439

442440
return $fixerApplication->run(

src/Command/ClearResultCacheCommand.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ protected function execute(InputInterface $input, OutputInterface $output): int
8484

8585
$container = $inceptionResult->getContainer();
8686

87-
/** @var ResultCacheClearer $resultCacheClearer */
8887
$resultCacheClearer = $container->getByType(ResultCacheClearer::class);
8988
$path = $resultCacheClearer->clear();
9089

src/Command/CommandHelper.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,6 @@ public static function begin(
467467

468468
$pathRoutingParser = $container->getService('pathRoutingParser');
469469

470-
/** @var StubFilesProvider $stubFilesProvider */
471470
$stubFilesProvider = $container->getByType(StubFilesProvider::class);
472471

473472
$filesCallback = static function () use ($currentWorkingDirectoryFileHelper, $stubFilesProvider, $fileFinder, $pathRoutingParser, $paths): array {

src/Command/FixerWorkerCommand.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use Nette\Utils\Json;
66
use PHPStan\Analyser\IgnoredErrorHelper;
7-
use PHPStan\Analyser\ResultCache\ResultCacheManager;
87
use PHPStan\Analyser\ResultCache\ResultCacheManagerFactory;
98
use PHPStan\ShouldNotHappenException;
109
use Symfony\Component\Console\Command\Command;
@@ -94,17 +93,14 @@ protected function execute(InputInterface $input, OutputInterface $output): int
9493

9594
$container = $inceptionResult->getContainer();
9695

97-
/** @var IgnoredErrorHelper $ignoredErrorHelper */
9896
$ignoredErrorHelper = $container->getByType(IgnoredErrorHelper::class);
9997
$ignoredErrorHelperResult = $ignoredErrorHelper->initialize();
10098
if (count($ignoredErrorHelperResult->getErrors()) > 0) {
10199
throw new ShouldNotHappenException();
102100
}
103101

104-
/** @var AnalyserRunner $analyserRunner */
105102
$analyserRunner = $container->getByType(AnalyserRunner::class);
106103

107-
/** @var ResultCacheManager $resultCacheManager */
108104
$resultCacheManager = $container->getByType(ResultCacheManagerFactory::class)->create();
109105
$projectConfigArray = $inceptionResult->getProjectConfigArray();
110106
[$inceptionFiles, $isOnlyFiles] = $inceptionResult->getFiles();

src/Command/WorkerCommand.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ protected function execute(InputInterface $input, OutputInterface $output): int
117117
return 1;
118118
}
119119

120-
/** @var NodeScopeResolver $nodeScopeResolver */
121120
$nodeScopeResolver = $container->getByType(NodeScopeResolver::class);
122121
$nodeScopeResolver->setAnalysedFiles($analysedFiles);
123122

@@ -169,11 +168,8 @@ private function runWorker(
169168
$out->end();
170169
};
171170
$out->on('error', $handleError);
172-
/** @var FileAnalyser $fileAnalyser */
173171
$fileAnalyser = $container->getByType(FileAnalyser::class);
174-
/** @var RuleRegistry $ruleRegistry */
175172
$ruleRegistry = $container->getByType(RuleRegistry::class);
176-
/** @var CollectorRegistry $collectorRegistry */
177173
$collectorRegistry = $container->getByType(CollectorRegistry::class);
178174
$in->on('data', function (array $json) use ($fileAnalyser, $ruleRegistry, $collectorRegistry, $out, $analysedFiles, $output): void {
179175
$action = $json['action'];

src/DependencyInjection/ContainerFactory.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,6 @@ public static function postInitializeContainer(Container $container): void
164164
$container->getByType(PhpStormStubsSourceStubber::class),
165165
);
166166

167-
/** @var Broker $broker */
168167
$broker = $container->getByType(Broker::class);
169168
Broker::registerInstance($broker);
170169
ReflectionProviderStaticAccessor::registerInstance($container->getByType(ReflectionProvider::class));

src/PhpDoc/StubValidator.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,8 @@ public function validate(array $stubFiles, bool $debug): array
9191
$ruleRegistry = $this->getRuleRegistry($container);
9292
$collectorRegistry = $this->getCollectorRegistry($container);
9393

94-
/** @var FileAnalyser $fileAnalyser */
9594
$fileAnalyser = $container->getByType(FileAnalyser::class);
9695

97-
/** @var NodeScopeResolver $nodeScopeResolver */
9896
$nodeScopeResolver = $container->getByType(NodeScopeResolver::class);
9997
$nodeScopeResolver->setAnalysedFiles($stubFiles);
10098

0 commit comments

Comments
 (0)