@@ -308,25 +308,6 @@ public static function begin(
308
308
throw new \PHPStan \Command \InceptionNotSuccessfulException ();
309
309
}
310
310
311
- $ autoloadFiles = $ container ->getParameter ('autoload_files ' );
312
- if ($ manageMemoryLimitFile && count ($ autoloadFiles ) > 0 ) {
313
- $ errorOutput ->writeLineFormatted ('⚠️ You \'re using a deprecated config option <fg=cyan>autoload_files</>. ⚠️️ ' );
314
- $ errorOutput ->writeLineFormatted ('' );
315
- $ errorOutput ->writeLineFormatted ('You might not need it anymore - try removing it from your ' );
316
- $ errorOutput ->writeLineFormatted ('configuration file and run PHPStan again. ' );
317
- $ errorOutput ->writeLineFormatted ('' );
318
- $ errorOutput ->writeLineFormatted ('If the analysis fails, there are now two distinct options ' );
319
- $ errorOutput ->writeLineFormatted ('to choose from to replace <fg=cyan>autoload_files</>: ' );
320
- $ errorOutput ->writeLineFormatted ('1) <fg=cyan>scanFiles</> - PHPStan will scan those for classes and functions ' );
321
- $ errorOutput ->writeLineFormatted (' definitions. PHPStan will not execute those files. ' );
322
- $ errorOutput ->writeLineFormatted ('2) <fg=cyan>bootstrapFiles</> - PHPStan will execute these files to prepare ' );
323
- $ errorOutput ->writeLineFormatted (' the PHP runtime environment for the analysis. ' );
324
- $ errorOutput ->writeLineFormatted ('' );
325
- $ errorOutput ->writeLineFormatted ('Read more about this in PHPStan \'s documentation: ' );
326
- $ errorOutput ->writeLineFormatted ('https://phpstan.org/user-guide/discovering-symbols ' );
327
- $ errorOutput ->writeLineFormatted ('' );
328
- }
329
-
330
311
$ autoloadDirectories = $ container ->getParameter ('autoload_directories ' );
331
312
if (count ($ autoloadDirectories ) > 0 && $ manageMemoryLimitFile ) {
332
313
$ errorOutput ->writeLineFormatted ('⚠️ You \'re using a deprecated config option <fg=cyan>autoload_directories</>. ⚠️️ ' );
@@ -341,16 +322,6 @@ public static function begin(
341
322
$ errorOutput ->writeLineFormatted ('' );
342
323
}
343
324
344
- foreach ($ autoloadFiles as $ parameterAutoloadFile ) {
345
- if (!file_exists ($ parameterAutoloadFile )) {
346
- $ errorOutput ->writeLineFormatted (sprintf ('Autoload file %s does not exist. ' , $ parameterAutoloadFile ));
347
- throw new \PHPStan \Command \InceptionNotSuccessfulException ();
348
- }
349
- (static function (string $ file ) use ($ container ): void {
350
- require_once $ file ;
351
- })($ parameterAutoloadFile );
352
- }
353
-
354
325
$ bootstrapFile = $ container ->getParameter ('bootstrap ' );
355
326
if ($ bootstrapFile !== null ) {
356
327
if ($ manageMemoryLimitFile ) {
0 commit comments