File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -26,12 +26,12 @@ public function register(): void
2626 'boost '
2727 );
2828
29- $ this ->app ->singleton (BoostManager::class, fn (): BoostManager => new BoostManager );
30-
3129 if (! $ this ->shouldRun ()) {
3230 return ;
3331 }
3432
33+ $ this ->app ->singleton (BoostManager::class, fn (): BoostManager => new BoostManager );
34+
3535 $ this ->app ->singleton (Roster::class, function () {
3636 $ lockFiles = [
3737 base_path ('composer.lock ' ),
Original file line number Diff line number Diff line change @@ -41,8 +41,8 @@ public function discoverSystemInstalledCodeEnvironments(): array
4141 public function discoverProjectInstalledCodeEnvironments (string $ basePath ): array
4242 {
4343 return $ this ->getCodeEnvironments ()
44- ->filter (fn ($ program ): bool => $ program ->detectInProject ($ basePath ))
45- ->map (fn ($ program ): string => $ program ->name ())
44+ ->filter (fn (CodeEnvironment $ program ): bool => $ program ->detectInProject ($ basePath ))
45+ ->map (fn (CodeEnvironment $ program ): string => $ program ->name ())
4646 ->values ()
4747 ->toArray ();
4848 }
You can’t perform that action at this time.
0 commit comments