Jordi Boggiano
d1c8a4d1b4
Lots of typing improvements
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
b77fce8a4f
More deprecation fixes by using ProcessExecutorMock and a couple of PackageInterface type fixes
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
b7d770659b
CS fixes
4 years ago
Michael Telgmann
a4509d28e7
Introduce constants for Composer\Package\Link types
4 years ago
Jordi Boggiano
83c64a9d19
Reuse operation formatting logic in downloaders
4 years ago
Jordi Boggiano
81bf47ffa2
Use fully qualified calls in hot classes
4 years ago
Jordi Boggiano
80505e745e
Fix phpstan issues
4 years ago
Nils Adermann
4e3d989978
A package providing a name should not conflict with a package replacing it
...
Simplified whatProvides, mustMatchName is unused, removed unused
function from policy
4 years ago
Nils Adermann
392d0abd21
Rename test files and standardize on allow list rather than whitelist
4 years ago
Nils Adermann
a732ea5dd8
Display source/dist refs if updates do not change the version
...
We now output an update when only a source or dist ref changes even if
it's a stable version so in these cases the output needs to contain the
ref to make it clear to users what changed
5 years ago
Matthew Brown
65903aacfd
Fix type issues ( #7996 )
...
* Fix type issues found by Psalm
5 years ago
Sascha Egerer
1845adcfbd
Fix update whitelist pattern resolving and add more tests
6 years ago
Jordi Boggiano
66d84f60c6
Fix pattern matching for remove wildcard, refs #7715
6 years ago
Jordi Boggiano
122e422682
CS fixes
7 years ago
Rob Bast
611d6a0364
use array as default value
...
rather than assigning empty array in constructor. the latter can cause
issues with mocks in some scenarios (if constructor does not get called)
8 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
Jordi Boggiano
ce08582671
Fix CS
9 years ago
Kunal Mehta
99dab8aebd
Move VersionParser::formatVersion() to BasePackage::getFullPrettyVersion()
...
Working towards #3545 .
formatVersion() does not belong in VersionParser since it depends upon a
Package object, and is creating a more complete pretty formatted
version, not parsing anything.
The new getFullPrettyVersion() method can be seen as an extension to
getPrettyVersion(), and is located in BasePackage as a result.
Callers to VersionParser::formatVersion() were not updated in this
commit to demonstrate that no functionality was changed in this
refactor. They will be updated in a follow up commit.
9 years ago
Jordi Boggiano
fc3c7838b2
CS fixes
10 years ago
Nils Adermann
2c43a3bcd0
Improve docblocks of public properties
10 years ago
Nils Adermann
5c0efdcaa2
Move public properties to top and document them
10 years ago
Nils Adermann
c6af09b1da
Make project id public
...
Reduction of rougly 1.3 million function calls on packagist update
10 years ago
Jordi Boggiano
32cd883daa
Rename options to transport-options, refs #2189
10 years ago
Luís Otávio Cobucci Oblonczyk
2e2b66b16e
Package should have download options
11 years ago
Martin Hasoň
fa0d62ab6a
Settings of the same repository for a package is allowed.
11 years ago
deguif
3c21dc1499
Moved setter before getter and added @inheritDoc
12 years ago
Jordi Boggiano
85671021c3
Clear id when cloning
12 years ago
Jordi Boggiano
8a275336a1
CS cleanups
12 years ago
Jordi Boggiano
c8a685be6b
Reduce memory usage by only loading packages that are actually needed, fixes #456
12 years ago
Jordi Boggiano
2d19cf2a00
Fix hijacking possibility via provide bug
12 years ago
Nils Adermann
cc7632489d
Make problem report messages more readable
...
Added pretty strings to constraints
12 years ago
Nils Adermann
5bea5974f7
Improve error messages for solver problems
12 years ago
Jordi Boggiano
1bd4ccbd54
php-cs-fixer magic
12 years ago
Jordi Boggiano
453b9a616b
Add test for Pool handling and refactor a couple things
12 years ago
Jordi Boggiano
1aaae5284b
Add list of stabilities to base package
12 years ago
Jordi Boggiano
53191eb0fe
Remove recommend, make suggest informational, add require-dev, fixes #78 , fixes #510
12 years ago
Jordi Boggiano
ceac0ca75b
Fix updating of already installed dev packages, fixes #496
12 years ago
Jordi Boggiano
35aa82ada8
Prevent multiple replaces of a same package to be skipped when the first fails to match
13 years ago
Jordi Boggiano
c425b8b6cb
Prevent a package from having duplicate names
13 years ago
Jordi Boggiano
f9fc9695e9
Wrap the package in an aliased package instead of replacing
13 years ago
digitalkaoz
30e89a2402
fixed broken packages on filesystem
13 years ago
Jordi Boggiano
46a67733f8
Adjust codebase to the new VersionParser
13 years ago
Jordi Boggiano
544067ced9
Packages can't be added to two repos at once
13 years ago
everzet
69f1de9986
Enhanced PackageInterface and BasePackage with getUniqueName() method, which provides name-version-releaseType string (used in installer registry)
13 years ago
everzet
9deb10361f
second batch of refactoring
13 years ago
Jordi Boggiano
07e181c6eb
Fix lowercase behavior
13 years ago
pborreli
f7735c396f
[Composer] Fixed typos
13 years ago