Skip to content

Commit

Permalink
Resolve #273 mark composer-runtime-api as always used
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Frömer <andreas.froemer@check24.de>
  • Loading branch information
Andreas Frömer authored and icanhazstring committed Jan 10, 2022
1 parent fc00a0f commit 449a5b4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Filter/FilterCollection.php
Expand Up @@ -20,6 +20,7 @@ final class FilterCollection implements IteratorAggregate, Countable
*/
private const GLOBAL_NAMED_EXCLUSION = [
'composer-plugin-api' => true,
'composer-runtime-api' => true,
'composer-unused/composer-unused-plugin' => true
];

Expand Down
1 change: 1 addition & 0 deletions tests/Integration/UnusedCommandTest.php
Expand Up @@ -82,6 +82,7 @@ public function itShouldNotReportSpecialPackages(): void

self::assertSame(0, $exitCode);
self::assertStringNotContainsString('composer-plugin-api', $commandTester->getDisplay());
self::assertStringNotContainsString('composer-runtime-api', $commandTester->getDisplay());
self::assertStringContainsString('Found 0 used, 0 unused, 0 ignored and 0 zombie packages', $commandTester->getDisplay());
}

Expand Down
Expand Up @@ -2,6 +2,7 @@
"name": "ns/lib",
"require": {
"dummy/test-package": "1.0",
"composer-plugin-api": "^2.0"
"composer-plugin-api": "^2.0",
"composer-runtime-api": "^2.0"
}
}

0 comments on commit 449a5b4

Please sign in to comment.