Skip to content

Commit 2524a73

Browse files
committed
Update Check.php
1 parent 6b94a4e commit 2524a73

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/Console/Traits/Check.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)