File tree 2 files changed +2
-6
lines changed
2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -212,7 +212,7 @@ public static function begin(
212
212
$ paths = array_map (static fn (string $ path ): string => $ currentWorkingDirectoryFileHelper ->normalizePath ($ currentWorkingDirectoryFileHelper ->absolutizePath ($ path )), $ paths );
213
213
214
214
$ analysedPathsFromConfig = [];
215
- $ containerFactory = new ContainerFactory ($ currentWorkingDirectory, true );
215
+ $ containerFactory = new ContainerFactory ($ currentWorkingDirectory );
216
216
$ projectConfig = null ;
217
217
if ($ projectConfigFile !== null ) {
218
218
if (!is_file ($ projectConfigFile )) {
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ class ContainerFactory
71
71
private static ?int $ lastInitializedContainerId = null ;
72
72
73
73
/** @api */
74
- public function __construct (private string $ currentWorkingDirectory, private bool $ checkDuplicateFiles = false )
74
+ public function __construct (private string $ currentWorkingDirectory )
75
75
{
76
76
$ this ->fileHelper = new FileHelper ($ currentWorkingDirectory );
77
77
@@ -277,10 +277,6 @@ private function detectDuplicateIncludedFiles(
277
277
return [$ normalized , $ configArray ];
278
278
}
279
279
280
- if (!$ this ->checkDuplicateFiles ) {
281
- return [$ normalized , $ configArray ];
282
- }
283
-
284
280
$ duplicateFiles = array_unique (array_diff_key ($ normalized , $ deduplicated ));
285
281
286
282
throw new DuplicateIncludedFilesException ($ duplicateFiles );
You can’t perform that action at this time.
0 commit comments