Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Symfony packages are reported as unused #619

Open
tacman opened this issue Feb 2, 2024 · 0 comments
Open

Symfony packages are reported as unused #619

tacman opened this issue Feb 2, 2024 · 0 comments

Comments

@tacman
Copy link

tacman commented Feb 2, 2024

Describe the bug

Running this tool with a basic symfony package only reports the framework as being used, but most packages are indeed used.

 Used packages
 ✓ php
 ✓ symfony/framework-bundle (https://github.com/symfony/framework-bundle)

 Unused packages
 ✗ ext-ctype
 ✗ ext-iconv
 ✗ doctrine/doctrine-bundle (https://github.com/doctrine/DoctrineBundle)
 ✗ doctrine/doctrine-migrations-bundle (https://github.com/doctrine/DoctrineMigrationsBundle)
 ✗ doctrine/orm (https://github.com/doctrine/orm)
 ✗ phpdocumentor/reflection-docblock (https://github.com/phpDocumentor/ReflectionDocBlock)
 ✗ phpstan/phpdoc-parser (https://github.com/phpstan/phpdoc-parser)
 ✗ symfony/asset (https://github.com/symfony/asset)
 ✗ symfony/asset-mapper (https://github.com/symfony/asset-mapper)
 ✗ symfony/console (https://github.com/symfony/console)
 ✗ symfony/doctrine-messenger (https://github.com/symfony/doctrine-messenger)
 ✗ symfony/dotenv (https://github.com/symfony/dotenv)
 ✗ symfony/expression-language (https://github.com/symfony/expression-language)
 ✗ symfony/flex (https://github.com/symfony/flex)
 ✗ symfony/form (https://github.com/symfony/form)
 ✗ symfony/http-client (https://github.com/symfony/http-client)
 ✗ symfony/intl (https://github.com/symfony/intl)
 ✗ symfony/mailer (https://github.com/symfony/mailer)
 ✗ symfony/mime (https://github.com/symfony/mime)
 ✗ symfony/monolog-bundle (https://github.com/symfony/monolog-bundle)
 ✗ symfony/notifier (https://github.com/symfony/notifier)
 ✗ symfony/process (https://github.com/symfony/process)
 ✗ symfony/property-access (https://github.com/symfony/property-access)
 ✗ symfony/property-info (https://github.com/symfony/property-info)
 ✗ symfony/runtime (https://github.com/symfony/runtime)
 ✗ symfony/security-bundle (https://github.com/symfony/security-bundle)
 ✗ symfony/serializer (https://github.com/symfony/serializer)
 ✗ symfony/stimulus-bundle (https://github.com/symfony/stimulus-bundle)
 ✗ symfony/string (https://github.com/symfony/string)
 ✗ symfony/translation (https://github.com/symfony/translation)
 ✗ symfony/twig-bundle (https://github.com/symfony/twig-bundle)
 ✗ symfony/ux-turbo (https://github.com/symfony/ux-turbo)
 ✗ symfony/validator (https://github.com/symfony/validator)
 ✗ symfony/web-link (https://github.com/symfony/web-link)
 ✗ symfony/yaml (https://github.com/symfony/yaml)
 ✗ twig/extra-bundle (https://github.com/twigphp/twig-extra-bundle)
 ✗ twig/twig (https://github.com/twigphp/Twig)



Additional information

symfony new unused-bug --webapp && cd unused-bug
sed -i 's|"type"|"name": "survos/bug", "description": "demo of a bug" , "type"|' composer.json
composer update
symfony server:start -d
symfony open:local

curl -OL https://github.com/composer-unused/composer-unused/releases/latest/download/composer-unused.phar
php composer-unused.phar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant