File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -255,7 +255,7 @@ private function arePackagesInSync(array $packages): bool
255255 );
256256
257257 foreach ($ packages as $ package ) {
258- if (! ($ package ['linked ' ] ?? false )) {
258+ if (! ($ package ['active ' ] ?? false ) && ! ( $ package [ ' linked ' ] ?? false )) {
259259 continue ;
260260 }
261261
@@ -269,6 +269,12 @@ private function arePackagesInSync(array $packages): bool
269269 continue ;
270270 }
271271
272+ // If package is active but not linked, we're out of sync
273+ if (($ package ['active ' ] ?? false ) && ! ($ package ['linked ' ] ?? false )) {
274+ return false ;
275+ }
276+
277+ // If package is linked but not in composer.json, we're out of sync
272278 if (! isset ($ composerRequire [$ packageName ])) {
273279 return false ;
274280 }
You can’t perform that action at this time.
0 commit comments