Martin Herndl
bcbd8fdb61
Add types to `Package` tests ( #10245 )
2021-11-01 21:44:12 +01:00
Cédric Anne
a7686e82f0
Filter candidates requiring an unknown platform package; fixes #10167 ( #10184 )
2021-10-26 17:24:17 +02:00
Jordi Boggiano
5062619046
Fix deprecation warnings with strpos receiving null
2021-08-18 15:55:37 +02:00
Jordi Boggiano
459a7d9623
Use a simpler suggested require version of * to keep things simple for extensions which are versioned like PHP, fixes #9483
2021-05-17 14:36:46 +02:00
Jordi Boggiano
62bd81bf7a
Make sure the default branch alias is never used as a constraint by the VersionSelector
2020-11-26 14:24:22 +01:00
Michael Telgmann
a4509d28e7
Introduce constants for Composer\Package\Link types
2020-09-21 14:22:06 +02:00
Jordi Boggiano
419567ba6d
Update VersionSelector to take all platform requirements into account when selecting packages
2020-05-04 21:16:41 +02:00
Jordi Boggiano
45ecbae8f5
Merge branch 'master' into 2.0
2020-02-07 22:20:51 +01:00
Ion Bazan
a2137d5263
use Symfony PHPUnit Bridge
2020-02-07 12:22:22 +08:00
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
2018-09-10 15:27:54 +02:00
Jordi Boggiano
066351c5b9
Remove use of deprecated getMock method
2018-04-12 10:24:56 +02:00
Gabriel Caruso
afc9a7643e
Use PHPUnit\Framework\TestCase instead of PHPUnit_Framework_TestCase
2017-11-30 13:44:43 -02:00
Rob Bast
873f17261c
try to fix test instead of guarding implementation
2016-12-01 14:03:20 +01:00
Rob Bast
9f2bd34c87
test copied from #5724
2016-09-27 17:39:44 +02:00
Jordi Boggiano
6146f7aded
Take into account prefer-stable and dev packages when computing outdated, refs #5251
2016-04-28 22:38:38 +01:00
Jordi Boggiano
966a982738
CS fixes
2015-11-21 19:28:10 +00:00
Jordi Boggiano
4b269f4ded
Follow stability option in create-project to select the best possible version, refs #4563
2015-11-14 15:04:04 +00:00
Jordi Boggiano
507415e404
Make VersionSelector prefer stable by default and allow specifying a PHP version that must be matched, fixes #4318
2015-10-27 14:43:04 +00:00
Rob Bast
a1427d7fd6
replace all occurences in code and comments
2015-09-24 16:32:36 +02:00
Jordi Boggiano
4ce0adb23c
Use the caret operator for all require operations
2015-04-29 23:53:40 +01:00
Jordi Boggiano
43c1caad0d
Merge remote-tracking branch 'Seldaek/caret-op-for-semver'
...
Conflicts:
tests/Composer/Test/Package/Version/VersionSelectorTest.php
2015-04-29 23:49:27 +01:00
Jordi Boggiano
cd38d1e096
Tweaks to also support 1.0-dev style aliases, refs #3480
2015-01-20 10:26:10 +00:00
Damian Mooyman
7bb85ff21e
Support aliases for numeric branches. Fixes #3461
2015-01-20 17:42:01 +13:00
Jordi Boggiano
d4523119ea
Use caret operator for 0.x releases when guessing versions, fixes #3518
2014-12-08 17:05:50 +00:00
Jordi Boggiano
06e96a78e2
Update ranges for 0.N versions, refs #3518
2014-12-08 17:04:59 +00:00
Jordi Boggiano
9438f3a58f
Use better semver ranges for 0.x versions, fixes #3518
2014-12-08 16:57:27 +00:00
Jordi Boggiano
e6165e6495
Tweak rules to allow guessing based on branch aliases and avoid greedy constraints on alpha/beta/RC packages, refs #3096
2014-09-23 15:19:23 +01:00
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).
2014-09-12 11:26:51 -04:00
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.
2014-09-12 11:26:51 -04:00