Skip to content

Conversation

@localheinz
Copy link
Contributor

This PR

  • keeps packages sorted in composer.json

πŸ’β€β™‚οΈ For reference, see https://getcomposer.org/doc/06-config.md#sort-packages.

"ext-curl": "*",
"lib-curl": "*",
"php": ">=5.3.0"
"php": ">=5.3.0",
Copy link
Member

Choose a reason for hiding this comment

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

Why change the require order ? They no longer seem to be sorted by alphabetical order.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That’s true, according to https://github.com/composer/composer/blob/c917865fe9f62fd0a7fa6db910597ec4259fc7bf/src/Composer/Json/JsonManipulator.php#L110-L146, requirements are sorted by type first, then alphabetically.

Copy link
Contributor Author

@localheinz localheinz Jun 21, 2018

Choose a reason for hiding this comment

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

If you are interested, take a look at https://localheinz.com/blog/2018/01/15/normalizing-composer.json/.

πŸ€“

Copy link
Member

Choose a reason for hiding this comment

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

Thanks for the links !

@hush-hush hush-hush self-assigned this Jun 21, 2018
Copy link
Member

@hush-hush hush-hush left a comment

Choose a reason for hiding this comment

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

πŸ‘

@hush-hush hush-hush merged commit 8bdbf20 into DataDog:master Jun 21, 2018
@localheinz localheinz deleted the feature/sort-packages branch June 24, 2018 09:01
@localheinz
Copy link
Contributor Author

Thank you, @hush-hush!

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