Nils Adermann
cbc686c16a
Merge pull request #10185 from Seldaek/remove_unknown_rule_type
...
Remove unknown Rule type
3 years ago
Jordi Boggiano
57e417b53a
Minor cleanup
3 years ago
Jordi Boggiano
75a8677e8a
Remove unknown Rule type
3 years ago
Jordi Boggiano
7e1f4882af
Reorder some code
3 years ago
immeëmosol
50d738eeee
Reaching phpstan level 6 in Composer/DependencyResolver (refs #10159 ) ( #10178 )
3 years ago
Jordi Boggiano
a6f1e803b1
Use more BasePackage instead of PackageInterface
3 years ago
Jordi Boggiano
b209816056
Type annotations
3 years ago
Jordi Boggiano
f25398f52c
Fix
3 years ago
Jordi Boggiano
e137046558
Type annotations
3 years ago
Jordi Boggiano
260ac0011c
Add constants to describe error codes from Installer::run
3 years ago
Jordi Boggiano
d1c8a4d1b4
Lots of typing improvements
3 years ago
Jordi Boggiano
4bcd860b65
Add more type annotations
3 years ago
Jordi Boggiano
d3c176ec69
PHPStan Level 5 ( #10070 )
...
* Bump PHPStan to level 5
* Update seld/phar-utils to latest
* Add phpstan-setup / phpstan scripts
3 years ago
Jordi Boggiano
3dcc6c1514
Make return value explicit
3 years ago
Jordi Boggiano
cfe718fa43
Fix usage of getRequiredPackage, closes #10052
3 years ago
Jordi Boggiano
a7efb27338
More php8.1 deprecation fixes, refs #10008
3 years ago
Jordi Boggiano
10ae1d7b08
Fix some PHP 8.1 deprecation warnings, fixes #10008
3 years ago
Jordi Boggiano
4c9e75c6e5
Fix CS
3 years ago
Nils Adermann
1ca6397442
Merge pull request #9765 from Seldaek/always_sync_symlinked_path_pkgs
...
Always mark symlinked path packages for update even during partial updates to make sure they always reflect the current state on disk
3 years ago
Jordi Boggiano
1f37d1c1d5
Add better error reporting for cases where a package conflicts with a replace and not directly a package, fixes #9834
3 years ago
Jordi Boggiano
0dce0f80f1
Also hint for errors when the root package does not match the constraint
3 years ago
Nils Adermann
21c70c2606
Merge pull request #9902 from Seldaek/cyclic-deps
...
Detect and output a better hint for cyclic dependencies
3 years ago
Jordi Boggiano
cbef7b9172
Detect and output a better hint for dependencies on the root package, fixes #9837
3 years ago
Jordi Boggiano
44e6591573
Improve error reporting for exts overridden by platform config, fixes #9876
3 years ago
Jordi Boggiano
298246dccb
Also condense dev-* versions if there are many, refs #9850
3 years ago
Jordi Boggiano
9b7a8d4543
Hint at a branch rename if we detect dev-master can not be found but dev-main or dev-default exists, fixes #9850
3 years ago
Jordi Boggiano
549dabf878
Merge branch '2.0'
3 years ago
Jordi Boggiano
e6cede4a61
Make sure update mirrors/--lock keeps the release date of the original reference when dev versions have newer commits, refs #9812
3 years ago
Jordi Boggiano
f10ae542ff
Always mark symlinked path packages for update even during partial updates to make sure they always reflect the current state on disk, fixes #9751
3 years ago
Jordi Boggiano
5d6f9b2528
Prefer @phpstan- annotations as that is what we run against
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
Jordi Boggiano
8392508e23
Merge branch '2.0'
3 years ago
Jordi Boggiano
ab84916422
Fix unclear error when a package can be found in lock but not in the remote repo, fixes #9750
3 years ago
Jordi Boggiano
40800df6bd
Fix CS
3 years ago
Arnaud Vanwambeke
7402ef33fc
Dont recommend to use with all dependencies option when it is already used
3 years ago
Jordi Boggiano
7f3a56f39b
Merge pull request #9360 from naderman/pool-builder-unlock-consider-all-constraints
...
PoolBuilder: Ensure versions matching locked constraints get loaded
4 years ago
Jordi Boggiano
d00edab884
Merge pull request #9477 from naderman/fix-alias-conflicts
...
Explicit conflicts should conflict with aliases of packages too
4 years ago
Nils Adermann
7197278fe9
Always install aliases together with their original package
...
Restores some Composer 1.x behavior like unbound constraints conflicting
with default branches unless they are branch aliased.
Simplifies conflicts with aliases because packages cannot be installed
without their aliases, so we do not need to know which aliases are
uninstalled in lock file or installed.json.
4 years ago
Jordi Boggiano
b7d770659b
CS fixes
4 years ago
Andrés De la Cruz
480a6439fd
Fix phpstan phpdocs issues ( #9478 )
4 years ago
Nils Adermann
d19b858e20
Improve decisions debug output
4 years ago
Nils Adermann
780e6fc027
Avoid creating unnecessary conflict rules for provide/replace of aliases
4 years ago
Nils Adermann
3764b3007d
Explicit conflict rule generation needs to use pool->whatProvides
...
If relying on packages added by name in the generator aliases will be
skipped.
4 years ago
Nils Adermann
27f200caf1
Create ROOT_ALIAS rules inside package rule generation
4 years ago
Nils Adermann
4215344c93
Rule generator cleanup: no need for 2 added package arrays, more specific root alias rule
4 years ago
Jordi Boggiano
b7e1383083
Make sure the alias package gets added to conflict rules etc, and only add it if aliased package is actually added
4 years ago
Jordi Boggiano
7b183956d8
Make sure the root aliases always get installed when a package is updated, fixes #9448
4 years ago
Nils Adermann
2d91fbc65a
PoolBuilder: never mark skipped packages for loading
...
Reorder code in loadPackage to avoid duplicate calls
4 years ago
Nils Adermann
7ddd1c64af
PoolBuilder: On unlock ensure consider all locked requirements for unlocked package
4 years ago
Nils Adermann
7dc67fbbad
Problem: Update fallback error message for requires without matches
4 years ago