Jordi Boggiano
7b1fc4b2c8
Remove alias::getAliasOf return type as this is not compatible with PHP 7.2/7.3
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
a16ed3d0ed
Add return types to private/internal methods
2 years ago
Jordi Boggiano
abdc6893a6
Add void types where no return statement is present
2 years ago
Jordi Boggiano
32852304d0
Make use of some new PHP features
2 years ago
Jordi Boggiano
40de07569d
Merge branch '2.2' into main
2 years ago
sasezaki
0c4cefaaa1
Introduce phpstan-type about autoload array type to be DRY ( #10516 )
2 years ago
Jordi Boggiano
3446091027
Merge branch '2.2' into main
2 years ago
Markus Staab
6be6ce7d9f
update composer/pcre to 1.0.1 ( #10496 )
2 years ago
Jordi Boggiano
bab974575c
Merge branch '2.2' into main
2 years ago
Stephan
3b4afaa9e3
ArrayLoader/ValidatingArrayLoader: handle non-string values for version/version_normalized ( #10470 )
...
Co-authored-by: Jordi Boggiano <j.boggiano@seld.be>
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
5e4a8a882d
Allow ProcessExecutor to receive commands as arrays, refs #6552 ( #10435 )
3 years ago
Jordi Boggiano
7e50f37b87
Remove some dead code and deprecate JsonFormatter, JsonFile::JSON_* constants, and TlsHelper
3 years ago
Niels Vanpachtenbeke
1c928466a9
Remove code blocks for php <7.2 compatibility ( #10417 )
3 years ago
Jordi Boggiano
7e27a25070
Get rid of RetutnTypeWillChange where possible, fixes #10014
3 years ago
Jordi Boggiano
0b3adc84da
Fix a few phpstan errors and add a php8+ baseline for the rest
3 years ago
Jordi Boggiano
24ce1eddbd
Add composer/pcre dependency and use it everywhere instead of preg_*
3 years ago
Jordi Boggiano
91548d178b
Add support for setting platform packages to false to disable them ( #10308 )
...
Fixes #9664
3 years ago
Jordi Boggiano
2c1ff41f8f
Fix phpstan
3 years ago
Jordi Boggiano
032db5bc01
Fix tests
3 years ago
Jordi Boggiano
deaec7c0ac
Report validation error if a package replaces and conflicts against the same name, fixes #9845
3 years ago
Jordi Boggiano
c15eba3fe3
Turn naming errors into hard failures in validating array loader
3 years ago
Jordi Boggiano
126f95a8d7
Get rid of gitignore/hgignore handling ( fixes #7358 ), Add support for -export-ignore ( fixes #9153 )
3 years ago
Jordi Boggiano
cc3b53bc2e
Also mark @putenv and @php deprecated/forbidden as script names to avoid clashes
3 years ago
Jordi Boggiano
f509c41280
Upgrade PHPStan to 1.0 ( #10253 )
...
Co-authored-by: Martin Herndl <martin@herndl.org>
3 years ago
Jordi Boggiano
65765a148a
Explicitly deprecate misuse of the link setters to enforce the fact they expect maps ( #10281 )
3 years ago
Jordi Boggiano
410771af36
Merge pull request #10274 from func0der/add_sorting_to_archiving
...
Add name sorting to ArchivableFilesFinder.
3 years ago
Martin Herndl
7eca450d9b
Add wildcard support to ignore-platform-req, fixes #10045 ( #10083 )
3 years ago
Martin Herndl
3013674c92
Refactor ignore platform reqs checks ( #10079 )
...
Introduces a `PlatformRequirementFilter` with methods that help to decide if a requirement is ignored or not as discussed in #10045 but without changing behaviour.
3 years ago
func0der
41a0c660b1
[add_sorting_to_archiving] Do not use natural sorting, cause of minimum required versions.
3 years ago
func0der
a48afcd790
[add_sorting_to_archiving] Add natural sorting to ArchivableFilesFinder.
3 years ago
Jordi Boggiano
b09a39f9c8
Error out on recursive links in validating loader and ignore them in regular loader
3 years ago
Jordi Boggiano
bd4d624cc7
Read first from $_SERVER and $_ENV before using getenv ( #10218 )
3 years ago
Jordi Boggiano
c65d09dff7
Fix @inheritDoc annotations
3 years ago
Cédric Anne
a7686e82f0
Filter candidates requiring an unknown platform package; fixes #10167 ( #10184 )
3 years ago
Martin Herndl
3645d3042c
Add types to root namespace ( #10213 )
3 years ago
Martin Herndl
f267b01852
Use single docblock for parameter types ( #10212 )
3 years ago
Martin Herndl
bd8b39fe01
Add types to `Package` ( #10210 )
3 years ago
Martin Herndl
13d433fad0
Add types to `Package/Loader` ( #10206 )
3 years ago
Martin Herndl
3fa7a6cb51
Add types to `Package/Version` ( #10199 )
3 years ago
pistej
b99e21259c
phpstan level 6 in src/Composer/Package/Comparer (refs #10159 ) ( #10196 )
3 years ago
Martin Herndl
db9e9a544e
Add types to `Package/Dumper` ( #10198 )
3 years ago
pistej
dbd0ccaad8
phpstan level 6 in src/Composer/Package/Archiver (refs #10159 ) ( #10195 )
3 years ago
Jordi Boggiano
d1c8a4d1b4
Lots of typing improvements
3 years ago
SvenRtbg
5c4e1cedb2
Add ability check for ZipArchive ( #10092 )
...
ZipArchive::setExternalAttributesName() is only available when libzip 0.11.2 or higher is present.
This is not the case with at least SUSE SLES 12, so a simple PHP version check will not work here.
3 years ago
Jordi Boggiano
dd49db6f08
Make sure that names with wildcards which are not preceded by dots are also seen as package names and not version constraints
3 years ago
Jordi Boggiano
01d734125c
Add more type info
3 years ago
Jordi Boggiano
61fba697a0
Fix validating array loader handling of invalid target branch datatype
3 years ago
Jordi Boggiano
73c109c561
Make sure that names with wildcards which are not preceded by dots are also seen as package names and not version constraints
3 years ago