Skip to content

Commit 1baa294

Browse files
committed
[BCB] Removed bootstrap
1 parent f67b48a commit 1baa294

File tree

3 files changed

+1
-16
lines changed

3 files changed

+1
-16
lines changed

conf/config.neon

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
includes:
22
- config.stubFiles.neon
33
parameters:
4-
bootstrap: null
54
bootstrapFiles:
65
- ../stubs/runtime/ReflectionUnionType.php
76
- ../stubs/runtime/ReflectionAttribute.php
@@ -177,7 +176,6 @@ extensions:
177176
parametersSchema: PHPStan\DependencyInjection\ParametersSchemaExtension
178177

179178
parametersSchema:
180-
bootstrap: schema(string(), nullable())
181179
bootstrapFiles: listOf(string())
182180
excludes_analyse: listOf(string())
183181
excludePaths: schema(anyOf(

phpstan-baseline.neon

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ parameters:
1212

1313
-
1414
message: "#^Anonymous function has an unused use \\$container\\.$#"
15-
count: 2
15+
count: 1
1616
path: src/Command/CommandHelper.php
1717

1818
-

src/Command/CommandHelper.php

-13
Original file line numberDiff line numberDiff line change
@@ -308,19 +308,6 @@ public static function begin(
308308
throw new \PHPStan\Command\InceptionNotSuccessfulException();
309309
}
310310

311-
$bootstrapFile = $container->getParameter('bootstrap');
312-
if ($bootstrapFile !== null) {
313-
if ($manageMemoryLimitFile) {
314-
$errorOutput->writeLineFormatted('⚠️ You\'re using a deprecated config option <fg=cyan>bootstrap</>. ⚠️️');
315-
$errorOutput->writeLineFormatted('');
316-
$errorOutput->writeLineFormatted('This option has been replaced with <fg=cyan>bootstrapFiles</> which accepts a list of files');
317-
$errorOutput->writeLineFormatted('to execute before the analysis.');
318-
$errorOutput->writeLineFormatted('');
319-
}
320-
321-
self::executeBootstrapFile($bootstrapFile, $container, $errorOutput, $debugEnabled);
322-
}
323-
324311
foreach ($container->getParameter('bootstrapFiles') as $bootstrapFileFromArray) {
325312
self::executeBootstrapFile($bootstrapFileFromArray, $container, $errorOutput, $debugEnabled);
326313
}

0 commit comments

Comments
 (0)