Skip to content

Commit f3bd10b

Browse files
Merge branch '6.2' into 6.3
* 6.2: Fix test
2 parents 13c5502 + b6195fe commit f3bd10b

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

Loader/FileLoader.php

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -297,15 +297,7 @@ private function findClasses(string $namespace, string $pattern, array $excludeP
297297
if (null !== $prefixLen) {
298298
foreach ($excludePaths as $path => $_) {
299299
$class = $namespace.ltrim(str_replace('/', '\\', substr($path, $prefixLen, str_ends_with($path, '.php') ? -4 : null)), '\\');
300-
<<<<<<< HEAD
301300
$this->addContainerExcludedTag($class, $source);
302-
=======
303-
if (!$this->container->has($class)) {
304-
$this->container->register($class, $class)
305-
->setAbstract(true)
306-
->addTag('container.excluded', $attributes);
307-
}
308-
>>>>>>> 6.2
309301
}
310302
}
311303

@@ -324,7 +316,7 @@ private function addContainerExcludedTag(string $class, ?string $source): void
324316
$attributes[$source] = ['source' => sprintf('in "%s/%s"', basename(\dirname($source)), basename($source))];
325317
}
326318

327-
$this->container->register($class)
319+
$this->container->register($class, $class)
328320
->setAbstract(true)
329321
->addTag('container.excluded', null !== $source ? $attributes[$source] : []);
330322
}

0 commit comments

Comments
 (0)