-
-
Notifications
You must be signed in to change notification settings - Fork 22
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
Add symfony/var-dumper as a requirement? #15
Comments
Makes sense. We also should create a new release, since there was another requirement update for |
@javiereguiluz totally makes sense. Would you like to handle it in a pull request? |
* Added symfony/var-dumper requirement * Defined the allowed dependency versions
@javiereguiluz @samdark @schmunk42 psy/psysh has already "symfony/var-dumper" dependency in her composer.json : https://github.com/bobthecow/psysh/blob/master/composer.json#L18 is it necessary to include it in our composer? |
Yes, since it's used here. If they would remove the dep i.e. our code would break. |
@pana1990 a general rule is that if your own code uses some third-party code directly, you should add it to |
Of course, thanks for your reply :) |
@schmunk42 Why is a production package using VarDumper? This is a dev package and now it becomes a production package which also brings some other disadvantages because of this. Since I now can not use latest version of it in dev environments. |
What steps will reproduce the problem?
In this class: https://github.com/yiisoft/yii2-shell/blob/master/YiiCaster.php you import a Symfony class:
use Symfony\Component\VarDumper\Caster\Caster;
but you don't requiresymfony/var-dumper
in thecomposer.json
of this project: https://github.com/yiisoft/yii2-shell/blob/master/composer.jsonThis works by chance and pure luck. Some package is installing the package you need (
symfony/var-dumper
) so this works without you actually requiring that package.What's expected?
symfony/var-dumper
should be added to therequire
section of thecomposer.json
file.What do you get instead?
Additional info
The text was updated successfully, but these errors were encountered: