File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -116,10 +116,10 @@ private function checkComposerJson(): bool
116116 $ composerJson = json_decode (file_get_contents (base_path ('composer.json ' )), true );
117117
118118 // Fail if there is symlinked packages
119- foreach ($ composerJson ['repositories ' ] ?? [] as $ key => $ repository ) {
119+ foreach ($ composerJson ['repositories ' ] ?? [] as $ repository ) {
120120
121- // Unless Eser is working on a PR ^^
122- if ($ repository ['type ' ] === 'path ' && ! in_array ( $ key , [ ' nativephp-laravel ' , ' nativephp-electron ' ]) ) {
121+ $ symlinked = $ repository [ ' options ' ][ ' symlink ' ] ?? true ;
122+ if ($ repository ['type ' ] === 'path ' && $ symlinked ) {
123123 $ this ->error ('Symlinked packages are not supported. Please remove them from your composer.json. ' );
124124
125125 return false ;
You can’t perform that action at this time.
0 commit comments