Skip to content

Commit 8686b6d

Browse files
committed
wip
1 parent 1bf5dfe commit 8686b6d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

packages/core/src/Commands/DiscoveryGenerateCommand.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222

2323
public function __construct(
2424
private FrameworkKernel $kernel,
25-
private Container $container,
2625
private DiscoveryConfig $discoveryConfig,
2726
private DiscoveryCache $discoveryCache,
2827
private GenerateDiscoveryCache $generateDiscoveryCache,

packages/discovery/src/BootDiscovery.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,10 +257,11 @@ private function discoverPath(string $input, DiscoveryLocation $location, array
257257
*/
258258
private function resolveDiscovery(string $discoveryClass): Discovery
259259
{
260-
/** @var Discovery $discovery */
261260
if ($this->container instanceof GenericContainer || $this->container->has($discoveryClass)) {
261+
/** @var Discovery $discovery */
262262
$discovery = $this->container->get($discoveryClass);
263263
} else {
264+
/** @var Discovery $discovery */
264265
$discovery = new $discoveryClass();
265266
}
266267

0 commit comments

Comments
 (0)