Skip to content

Commit c249ade

Browse files
committed
Parallel analysis for everyone!
1 parent 29e5ce4 commit c249ade

File tree

4 files changed

+2
-13
lines changed

4 files changed

+2
-13
lines changed

conf/bleedingEdge.neon

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@ parameters:
22
featureToggles:
33
closureUsesThis: true
44
randomIntParameters: true
5-
parallel: true
65
resultCache: true

conf/config.neon

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ parameters:
1010
staticReflectionForPhpParser: true
1111
disableRuntimeReflectionProvider: false
1212
enableScanningPaths: false
13-
parallel: false
1413
resultCache: false
1514
fileExtensions:
1615
- php
@@ -337,7 +336,6 @@ services:
337336
class: PHPStan\Command\AnalyseApplication
338337
arguments:
339338
memoryLimitFile: %memoryLimitFile%
340-
runParallel: %featureToggles.parallel%
341339

342340
-
343341
class: PHPStan\Command\IgnoredRegexValidator

src/Command/AnalyseApplication.php

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,13 @@ class AnalyseApplication
3333
/** @var string */
3434
private $memoryLimitFile;
3535

36-
/** @var bool */
37-
private $runParallel;
38-
3936
public function __construct(
4037
Analyser $analyser,
4138
StubValidator $stubValidator,
4239
ParallelAnalyser $parallelAnalyser,
4340
Scheduler $scheduler,
4441
ResultCacheManager $resultCacheManager,
45-
string $memoryLimitFile,
46-
bool $runParallel
42+
string $memoryLimitFile
4743
)
4844
{
4945
$this->analyser = $analyser;
@@ -52,7 +48,6 @@ public function __construct(
5248
$this->scheduler = $scheduler;
5349
$this->resultCacheManager = $resultCacheManager;
5450
$this->memoryLimitFile = $memoryLimitFile;
55-
$this->runParallel = $runParallel;
5651
}
5752

5853
/**
@@ -206,8 +201,7 @@ private function runAnalyser(
206201
}
207202

208203
if (
209-
$this->runParallel
210-
&& !$debug
204+
!$debug
211205
&& $mainScript !== null
212206
&& $schedule->getNumberOfProcesses() > 1
213207
) {
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
parameters:
2-
featureToggles:
3-
parallel: true
42
parallel:
53
jobSize: 1

0 commit comments

Comments
 (0)