1

I have the following requirements in my composer json

  • A dev-feature1
  • B dev-develop

Requirement B requires also A but on dev-develop

When I use composer update it will errored because requirement cant be solved. Can I force composer to use my requirement?

I need it for easier testing.

1 Answer 1

2

Composer allows to create inline aliases.

So your require package definition should look like this

"require": {
    "acme/A": "dev-feature as dev-develop"
}
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.