Skip to content

Commit 6d19ef9

Browse files
committed
chore: market require
1 parent bc14bfa commit 6d19ef9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Commands/MarketRequireCommand.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,16 @@ public function handle()
140140

141141
$type = $this->option('install_type');
142142

143+
if ($type == 'local') {
144+
if ($this->isLocalPath($fskey) == false) {
145+
$type = null;
146+
}
147+
}
148+
143149
if (! $type) {
144150
$type = match (true) {
145151
str_contains($fskey, '://') => 'url',
146152
$this->isComposerPackage($fskey) => 'composer',
147-
$this->isLocalPath($fskey) => 'local',
148153
default => 'market',
149154
};
150155
}

0 commit comments

Comments
 (0)