<!– Please remember to select the appropriate branch:
For bug fixes pick the oldest branch where the fix applies (e.g. 2.4 if that version is affected, 1.10 if it is a critical fix that should be fixed in Composer 1, otherwise `m…
This pull request
VersionBumper from dropping the .0 patch version when major.minor.patch version is used in constraintThis highlights the security risk of using a read_api scope for the GitLab Personal Access Token
The command must validate that the current package matches the constraint, not that any newer package matches it.
Closes #6925
isset allow us to pass multiple values to check.
Also enabled in .php_cs.
I've added PHPUnit 6 support to Composer. Changes:
setExpectedException isn't available in version 6, so I substitute to @expectException and @expectedExceptionMessage notations. But,…This relates to #6845, since the merged fix doesn't seem to work, see https://github.com/phpstan/phpstan/pull/649
I'm still working on this, for now I've added a regression test that expects a non-normalized version as the `pretty_ver…
Continuing to refactored tests, like #6849, using:
assertNotEmpty instead of empty method;assertFalse and instead of strict comparisons with false keyword;assertSame and instead of strict comparisons;This should fix the newline bug reported in #5933, #5937 & #5936
I wasn't 100% sure if the writeError should also get this flag bug I believe it doesn't.
Thanks to @hannesvdvreken for spotting the lines where it happened.
This should solve #5869
When seeing the error message, I though "config.platform.php" was some file/value configured for platform.sh instead of a setting value in composer.json. I propose to make it a bit more clear that this value is set in composer.json
Proposed solution for #1323
When downloading a git repository, it checks if that repository was already cached under cache-vcs-dir and if it was, use it as a "–reference".
By using this option, when downloading objects, git checks…
Because OCD, that's why.
Personally, I find it a lot easier to spot things in a list when the list is sorted alphabetically.
This PR has mainly been worked on by @malukenho, so please ping him as well for questions, if you have any.
The final aim is to support grouped constraints such as:
(<10|>2),(<5|>3)(>3.5,<3.6)|(>4.5,<4.6)This simpl…
The option isn't used for a long time already, but there was no warning about the usage of it. This could lead to confusion, as people could be thinking that no-dev is the default.
motivation: I generally know the package I want, but don't remember the version. Opening a new terminal session and running composer show -a repo/package is too much of a hassle.
changes: composer init (and consequently `c…
Maximum cache size is configured via cache-files-maxsize key. By default it is 300 megabytes.
I just tried to use our internal Composer repository to install a package from distribution packages and it failed, I'm not sure if it ever worked I guess it must have done. GitHub is returning a 406 (weirdly) for requests to a private r…