We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b94a4e commit 2524a73Copy full SHA for 2524a73
1 file changed
src/Console/Traits/Check.php
@@ -255,7 +255,7 @@ private function arePackagesInSync(array $packages): bool
255
);
256
257
foreach ($packages as $package) {
258
- if (! ($package['linked'] ?? false)) {
+ if (! ($package['active'] ?? false) && ! ($package['linked'] ?? false)) {
259
continue;
260
}
261
@@ -269,6 +269,12 @@ private function arePackagesInSync(array $packages): bool
269
270
271
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
278
if (! isset($composerRequire[$packageName])) {
279
return false;
280
0 commit comments