@@ -308,25 +308,6 @@ public static function begin(
308308 throw new \PHPStan \Command \InceptionNotSuccessfulException ();
309309 }
310310
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-
330311 $ autoloadDirectories = $ container ->getParameter ('autoload_directories ' );
331312 if (count ($ autoloadDirectories ) > 0 && $ manageMemoryLimitFile ) {
332313 $ errorOutput ->writeLineFormatted ('⚠️ You \'re using a deprecated config option <fg=cyan>autoload_directories</>. ⚠️️ ' );
@@ -341,16 +322,6 @@ public static function begin(
341322 $ errorOutput ->writeLineFormatted ('' );
342323 }
343324
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-
354325 $ bootstrapFile = $ container ->getParameter ('bootstrap ' );
355326 if ($ bootstrapFile !== null ) {
356327 if ($ manageMemoryLimitFile ) {
0 commit comments