Jordi Boggiano
ffc0f86fc0
Fix warnings in composer require to show when repo prio is at fault, refs #9371
4 years ago
Jordi Boggiano
e85da00dff
Add a way to ignore only some packages in --ignore-platform-reqs, and make the platform check ignore those packages which were ignored as requirements, fixes #8861
4 years ago
Jordi Boggiano
419567ba6d
Update VersionSelector to take all platform requirements into account when selecting packages
4 years ago
Jordi Boggiano
b11f43f59e
Merge remote-tracking branch 'origin/1.10'
4 years ago
Jordi Boggiano
92aed041e4
Make the VersionSelector take Composer API/Runtime versions into account, refs getsentry/sentry-php#1008
4 years ago
Matthew Brown
65903aacfd
Fix type issues ( #7996 )
...
* Fix type issues found by Psalm
6 years ago
Nils Adermann
6ef65e5319
Add a new RepositorySet class and restrict pool usage to the solver
...
Breaking change for the plugin interface so bumping the version of
composer-plugin-api to 2.0.0
First step for a refactoring of the package metadata loading mechanism
6 years ago
Rob Bast
710bb0d008
fix based on test, fixes #5724
8 years ago
Niels Keurentjes
b059cbe37c
Removed unused variables and includes, fixed functions being called with more arguments than declared.
9 years ago
Jordi Boggiano
fff0aed3a6
Allow Semver VersionParser in input hints
9 years ago
Jordi Boggiano
c9436438ff
Add memoization to parseConstraints, saves some (6-7% here) RAM and marginal CPU time
9 years ago
Jordi Boggiano
966a982738
CS fixes
9 years ago
Jordi Boggiano
4b269f4ded
Follow stability option in create-project to select the best possible version, refs #4563
9 years ago
Jordi Boggiano
507415e404
Make VersionSelector prefer stable by default and allow specifying a PHP version that must be matched, fixes #4318
9 years ago
Rob Bast
1328d9c3b2
rename baseversionparser to semverversionparser
...
and fix docblock as per @stof request
9 years ago
Rob Bast
a1ad7fc435
fix classname clashing cause of existing class in current namespace
9 years ago
Rob Bast
a1427d7fd6
replace all occurences in code and comments
9 years ago
Jordi Boggiano
4ce0adb23c
Use the caret operator for all require operations
9 years ago
Jordi Boggiano
43c1caad0d
Merge remote-tracking branch 'Seldaek/caret-op-for-semver'
...
Conflicts:
tests/Composer/Test/Package/Version/VersionSelectorTest.php
9 years ago
Rob Bast
117b7ea033
Fixes #3900
10 years ago
Jordi Boggiano
d4523119ea
Use caret operator for 0.x releases when guessing versions, fixes #3518
10 years ago
Jordi Boggiano
06e96a78e2
Update ranges for 0.N versions, refs #3518
10 years ago
Jordi Boggiano
9438f3a58f
Use better semver ranges for 0.x versions, fixes #3518
10 years ago
Jordi Boggiano
94926218e8
CS fixes
10 years ago
Jordi Boggiano
e6165e6495
Tweak rules to allow guessing based on branch aliases and avoid greedy constraints on alpha/beta/RC packages, refs #3096
10 years ago
Ryan Weaver
895e62e859
Refactoring selection of the "recommended" version (e.g ~1.2) and adding some tests
...
This also modifies the behavior slightly (from a recommendation by seldaek) to always
propose the minor version of the recommendation (e.g. ~1.2 instead of ~1.2.1).
10 years ago
Ryan Weaver
aea2e901a9
Extracting logic into a new class related to selecting the latest version
...
Also refactored InitCommand slightly so that you can use this "latest version"
functionality when searching for a package as well.
10 years ago