Skip to content

Conversation

harikt
Copy link

@harikt harikt commented Jan 19, 2018

composer why-not ?

## Install or update dependencies
install:
- composer validate
- if [ -z "$dropPlatform" ]; then composer config --unset platform.php; fi;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder whether it is caused to some configuration issues. What is this doing ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting, so removing that solved the issue 0_o? So what that does is unset the following from composer.json

{
  "config": {
    "platform": {
      "php": "7.0"
    }
}

That is there to ensure no packages (or versions of them) cam be installed using composer require. For example my local PHP version is 7.2 and packages like doctrine/annotation have ^7.1 and maybe even ^7.2 versions available. When running composer require doctrine/annotation a version is selected that can be used on 7.0 even though my local verion is 7.2.

@harikt
Copy link
Author

harikt commented Feb 9, 2018

Closing the PR for this was just tests. Hope you have already fixed the issues related to this.

Thank you.

@harikt harikt closed this Feb 9, 2018
@harikt harikt deleted the patch-1 branch February 9, 2018 17:34
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

Successfully merging this pull request may close these issues.

2 participants