Jordi Boggiano
6a466a120a
Enable strict types on all files
2 years ago
Jordi Boggiano
0db443ba5f
Add visibility to all consts, fixes #10550
2 years ago
Jordi Boggiano
89ce53250e
Final type additions
2 years ago
Jordi Boggiano
6da38f83a0
Add parameter types to all the things
2 years ago
Jordi Boggiano
eda9014bef
Add return types to all code which is not being extended by open source packages
2 years ago
Jordi Boggiano
abdc6893a6
Add void types where no return statement is present
2 years ago
Jordi Boggiano
bab974575c
Merge branch '2.2' into main
2 years ago
Jordi Boggiano
e3d99cac59
Fix phpstan issues, update baseline and pin PHPStan version in 2.2 branch ( #10474 )
2 years ago
Jordi Boggiano
7e27a25070
Get rid of RetutnTypeWillChange where possible, fixes #10014
2 years ago
Jordi Boggiano
75a8677e8a
Remove unknown Rule type
3 years ago
immeëmosol
50d738eeee
Reaching phpstan level 6 in Composer/DependencyResolver (refs #10159 ) ( #10178 )
3 years ago
Jordi Boggiano
b209816056
Type annotations
3 years ago
Jordi Boggiano
4bcd860b65
Add more type annotations
3 years ago
Jordi Boggiano
a7efb27338
More php8.1 deprecation fixes, refs #10008
3 years ago
Jordi Boggiano
4940009f83
Bump phpstan to level 3 ( #9734 )
...
Clean up PackageInterface/CompletePackageInterface, add missing methods, type things in solver as BasePackage, added CompleteAliasPackage, ..
3 years ago
Simon Berger
002fd39bc6
Removed passing of parameters with default value
4 years ago
Jordi Boggiano
81bf47ffa2
Use fully qualified calls in hot classes
4 years ago
Jordi Boggiano
80a7c40c76
Shorten long lists of similar versions in problem output, fixes #8743
4 years ago
Jordi Boggiano
c41df325d8
Remove RepositorySet from Solver and remove getPool from RepositorySet
4 years ago
Jordi Boggiano
3fc7e10c5c
Improve error reporting of solver issues, refs #7779
...
Fixes #8525
Fixes #6513
4 years ago
Nils Adermann
5bdc0fc9c5
Request jobs replaced by root require / fixed package
...
The only type of request job remaining was "install" which is really a
root requirement. The only other kind of input for the solver is now a
set of fixed packages.
Rules have been updated to account for only two kinds of former job
reason: FIXED or ROOT_REQUIRE. The job property has always been
redundant and has been removed, since reasonData suffices.
Problem reasons are always rules, so the unnecessary wrapping in an
array has been removed.
We now only ever generate a single rule per root require or fixed
package, so there is no need for the solver to special handle disabling
"jobs" anymore, the rule can just be disabled as usual.
For consistency special handling of rules for jobs in problems has been
integrated into the rule class like all other rule reasons. As part of
this change the error message for root requirements has been improved a
bit to make it clearer where the package installation request came from.
The word job has also been removed from operations, which are called
operations, not jobs.
4 years ago
rubenrua
8fccbaa4a4
Improve memory usage resolving dependencies II
...
Optimize `rulesByHash` in `Composer\DependencyResolver\RuleSet` to only
use an array with the second element, event with very low probability.
7 years ago
Yanick Witschi
7b5fe5c7d4
CS
8 years ago
Yanick Witschi
a9e88a27b3
CS
8 years ago
Yanick Witschi
4a769a785c
Reduce calls on Rule::getHash()
8 years ago
Nils Adermann
961ea868ac
Use an integer bitfield for rule properties instead of a string binary blob
9 years ago
Nils Adermann
6e81f63635
Reduce memory footprint of rules by storing data in blob
...
Not declaring the job property saves significant amounts of memory as
most rules leave it as null
9 years ago
Nils Adermann
6f41e99fe2
Add back ruleById function for BC
10 years ago
Nils Adermann
2c43a3bcd0
Improve docblocks of public properties
10 years ago
Nils Adermann
26598c4a9a
Remove unnecessary pool reference from rules
10 years ago
Nils Adermann
d77400ade2
Make ruleById lookup table in rule set public
...
Saves about 500k function calls on a packagist update
10 years ago
Jordi Boggiano
d21032ace5
CS fixes
12 years ago
Jordi Boggiano
1bd4ccbd54
php-cs-fixer magic
12 years ago
Nils Adermann
15f43571b9
Rules of type feature are no longer needed
12 years ago
Nils Adermann
5daeacf0ac
We won't implement choice rules, you need to edit composer.json to choose
12 years ago
Jordi Boggiano
f7440076fa
Revert "Merge remote-tracking branch 'naderman/remove-packages-by-default'"
...
This reverts commit 2988152602
, reversing
changes made to adb4188e12
.
12 years ago
Nils Adermann
f4d5568937
Rules of type feature are no longer needed
12 years ago
Nils Adermann
0e537b9c93
We won't implement choice rules, you need to edit composer.json to choose
12 years ago
Volker Dusch
3fb75faa75
Now that no more update rules are created the code that handles them can be removed too.
...
Also adapted the tests that used TYPE_UPDATE exemplarily to use TYPE_FEATURE.
12 years ago
Artem Lopata (bumz)
de066de198
Fix for composer. When running update/install command it's just do nothing, except writing "Installing dependencies"
13 years ago
Jordi Boggiano
d020f2701d
Merge pull request #118 from naderman/priority-replace-any-version
...
Replaced packages have higher priority even if wrong version is replaced
13 years ago
Nils Adermann
40b33914b3
Compute rule hashes for faster duplicate detection
13 years ago
Nils Adermann
b717ad8851
Display rules in more readable format
13 years ago
Nils Adermann
825deff09f
Completed analysis of unsolvable situations and main decision process
13 years ago
Nils Adermann
bc672deb32
Moving rule iteration logic to a separate RuleSet and RuleSetIterator class
13 years ago