Skip to content

Commit cad69ee

Browse files
committed
[BCB] Remove memoryLimitFile
1 parent 688e650 commit cad69ee

File tree

6 files changed

+2
-10
lines changed

6 files changed

+2
-10
lines changed

UPGRADING.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,4 +147,5 @@ This method now longer accepts `Expr $rootExpr`. If you want to change it, call
147147
* Parameter `$callableParameters` of [`MutatingScope::enterAnonymousFunction()`](https://apiref.phpstan.org/2.0.x/PHPStan.Analyser.MutatingScope.html#_enterAnonymousFunction) and [`enterArrowFunction()`](https://apiref.phpstan.org/2.0.x/PHPStan.Analyser.MutatingScope.html#_enterArrowFunction) made required
148148
* Parameter `StatementContext $context` of [`NodeScopeResolver::processStmtNodes()`](https://apiref.phpstan.org/2.0.x/PHPStan.Analyser.NodeScopeResolver.html#_processStmtNodes) made required
149149
* ClassPropertiesNode - remove `$extensions` parameter from [`getUninitializedProperties()`](https://apiref.phpstan.org/2.0.x/PHPStan.Node.ClassPropertiesNode.html#_getUninitializedProperties)
150-
* Removed config parameter `cache.nodesByFileCountMax`
150+
* Removed unused config parameter `cache.nodesByFileCountMax`
151+
* Removed unused config parameter `memoryLimitFile`

conf/config.neon

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,6 @@ parameters:
182182
- ../stubs/Countable.stub
183183
earlyTerminatingMethodCalls: []
184184
earlyTerminatingFunctionCalls: []
185-
memoryLimitFile: %tmpDir%/.memory_limit
186185
tempResultCachePath: %tmpDir%/resultCaches
187186
resultCachePath: %tmpDir%/resultCache.php
188187
resultCacheChecksProjectExtensionFilesDependencies: false

conf/parametersSchema.neon

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,6 @@ parametersSchema:
185185
stubFiles: listOf(string())
186186
earlyTerminatingMethodCalls: arrayOf(listOf(string()))
187187
earlyTerminatingFunctionCalls: listOf(string())
188-
memoryLimitFile: string()
189188
tempResultCachePath: string()
190189
resultCachePath: string()
191190
resultCacheChecksProjectExtensionFilesDependencies: bool()

tests/PHPStan/Command/AnalyseApplicationIntegrationTest.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,6 @@ private function runPath(string $path, int $expectedStatusCode): string
6565
new \PHPStan\Command\Symfony\SymfonyStyle(new SymfonyStyle($this->createMock(InputInterface::class), $output)),
6666
);
6767

68-
$memoryLimitFile = self::getContainer()->getParameter('memoryLimitFile');
69-
7068
$relativePathHelper = new FuzzyRelativePathHelper(new NullRelativePathHelper(), __DIR__, [], DIRECTORY_SEPARATOR);
7169
$errorFormatter = new TableErrorFormatter(
7270
$relativePathHelper,
@@ -90,9 +88,6 @@ private function runPath(string $path, int $expectedStatusCode): string
9088
null,
9189
$this->createMock(InputInterface::class),
9290
);
93-
if (file_exists($memoryLimitFile)) {
94-
unlink($memoryLimitFile);
95-
}
9691
$statusCode = $errorFormatter->formatErrors($analysisResult, $symfonyOutput);
9792

9893
rewind($output->getStream());

tests/PHPStan/Command/CommandHelperTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,6 @@ public function dataParameters(): array
186186
'paths' => [
187187
__DIR__ . DIRECTORY_SEPARATOR . 'relative-paths' . DIRECTORY_SEPARATOR . 'src',
188188
],
189-
'memoryLimitFile' => __DIR__ . DIRECTORY_SEPARATOR . 'relative-paths' . DIRECTORY_SEPARATOR . '.memory_limit',
190189
'excludePaths' => [
191190
'analyseAndScan' => [
192191
__DIR__ . DIRECTORY_SEPARATOR . 'relative-paths' . DIRECTORY_SEPARATOR . 'src',

tests/PHPStan/Command/relative-paths/root.neon

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ parameters:
1111
- %rootDir%/conf
1212
paths:
1313
- src
14-
memoryLimitFile: .memory_limit
1514
excludePaths:
1615
- src
1716
- src/*/data

0 commit comments

Comments
 (0)