Skip to content

Commit 5749c37

Browse files
committed
Fallback for early resolution
1 parent ab508ca commit 5749c37

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Composer/ComposerManager.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,12 @@ public function __construct()
4141
*/
4242
public static function instance(): static
4343
{
44-
return App::make('core.composer');
44+
try {
45+
return App::make('core.composer');
46+
}
47+
catch (Exception $ex) {
48+
return new static;
49+
}
4550
}
4651

4752
/**

0 commit comments

Comments
 (0)