Composer removes packages
when installing phpstan via composer require --dev phpstan/phpstan
it automaticlly removes filament/spatie-laravel-media-library-plugin
is there a problem here ???
6 Replies
I've never seen composer "automatically remove" packages π€
Can you share a video of this?
i think this package filament/spatie-laravel-media-library-plugin
used as dependency for another package
it doesn't appear in composer.json
@Dennis Koch
that package will be removed anyway when you do
composer update
or any other installation/update of any package, because its found in composer.lock only, and not composer.json,
means its not used anymore by you, so if you need that package add it to composer.json if not just ignore itIf you don't use that package, what's the issue then? π
Got it thanks guys