Skip to content

Commit

Permalink
Exclude composer/xdebug-handler
Browse files Browse the repository at this point in the history
`XdebugHandler` is used in `php-cs-fixer` file, but it can't be processed properly by `composer-unused` (using custom config file):

Fatal error: Uncaught Error: Call to undefined method PhpParser\Node\Expr\Closure::getParts() in dev-tools/vendor/composer-unused/symbol-parser/src/Parser/PHP/DefinedSymbolCollector.php:65
  • Loading branch information
Wirone committed Dec 9, 2023
1 parent 5392e88 commit b27ea9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/sca.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
run: ./dev-tools/vendor/bin/phpstan analyse --ansi

- name: Check - composer-unused
run: ./dev-tools/vendor/bin/composer-unused --no-progress
run: ./dev-tools/vendor/bin/composer-unused --no-progress --excludePackage=composer/xdebug-handler

- name: Check - composer-require-checker
run: ./dev-tools/vendor/bin/composer-require-checker check composer.json --config-file .composer-require-checker.json
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
"Composer\\Config::disableProcessTimeout",
"paraunit run --testsuite unit"
],
"unused-deps": "@php dev-tools/vendor/bin/composer-unused"
"unused-deps": "@php dev-tools/vendor/bin/composer-unused --excludePackage=composer/xdebug-handler"
},
"scripts-descriptions": {
"auto-review": "Execute Auto-review",
Expand Down

0 comments on commit b27ea9e

Please sign in to comment.