Jordi Boggiano
6a466a120a
Enable strict types on all files
2 years ago
Jordi Boggiano
89ce53250e
Final type additions
2 years ago
Jordi Boggiano
7abc8da7d3
Add more types
2 years ago
Jordi Boggiano
6da38f83a0
Add parameter types to all the things
2 years ago
Alexander Schranz
1321bfca36
Add return types to closures ( #9 )
2 years ago
Jordi Boggiano
a16ed3d0ed
Add return types to private/internal methods
2 years ago
Jordi Boggiano
86fb8d4412
Fix CS
2 years ago
Jordi Boggiano
2e40cdf2dc
Clean up properties that belong in PackageDiscoveryTrait
2 years ago
Jordi Boggiano
63b5f2737b
Merge branch '2.2' into main
2 years ago
Jordi Boggiano
53810b0cfb
Fix return type
2 years ago
Jordi Boggiano
5c98a2cf8e
Add phpstan-symfony to get type info about console InputInterface, fix many errors ( #10476 )
...
Extract common init/require commands functionality into PackageDiscoveryTrait
Extract some helper methods into BaseCommand for better types
2 years ago
Jordi Boggiano
28ec4fa7b0
Fix handling of invalid emails
2 years ago
Jordi Boggiano
f1ebc1d2b6
Fix init author support to make email optional, fixes #10538
2 years ago
Niels Vanpachtenbeke
1c928466a9
Remove code blocks for php <7.2 compatibility ( #10417 )
2 years ago
Jordi Boggiano
4e6d54b731
Fix all 5.3 $this-in-closure usages
2 years ago
Jordi Boggiano
5805a68645
Fix some todos dropping support for older Symfony releases
2 years ago
Jordi Boggiano
4e8f3e85e2
Improve error reporting for repo priorities, refs #10339
2 years ago
Jordi Boggiano
24ce1eddbd
Add composer/pcre dependency and use it everywhere instead of preg_*
2 years ago
Jordi Boggiano
91548d178b
Add support for setting platform packages to false to disable them ( #10308 )
...
Fixes #9664
3 years ago
Jordi Boggiano
f509c41280
Upgrade PHPStan to 1.0 ( #10253 )
...
Co-authored-by: Martin Herndl <martin@herndl.org>
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
Jordi Boggiano
c65d09dff7
Fix @inheritDoc annotations
3 years ago
Samuel Felipe
3ccb54832b
PHPStan level 6 in src/Composer/Command ( #10214 )
3 years ago
Cédric Anne
a7686e82f0
Filter candidates requiring an unknown platform package; fixes #10167 ( #10184 )
3 years ago
Jordi Boggiano
9599eb613b
Type annotations
3 years ago
Jordi Boggiano
0761474599
Add type info to many properties/methods
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
f5a03b950d
Improve error reporting in require command, fixes invalid case of consistency issue, fixes #10006
3 years ago
Jordi Boggiano
078aaa6968
Make sure the correct name is being output, fixes #9986
3 years ago
Jordi Boggiano
a5efbbc94a
Validate schema before writing the file, fixes #9986
3 years ago
Jordi Boggiano
420d9bf21d
Move name validation out of interact, fixes #9986
3 years ago
Jordi Boggiano
4c9e75c6e5
Fix CS
3 years ago
Jordi Boggiano
c8de960018
Throw when repo consistency is in question
3 years ago
Jordi Boggiano
3380178798
Introduce a cross-platform safe version of is_readable to support UNC / wsl$ paths on Windows ( #9861 )
3 years ago
Jordi Boggiano
1fd70de32d
Merge branch '2.0'
3 years ago
Jordi Boggiano
99d8e0ad09
Fix install step at the end of init command
3 years ago
Andreas Scheibel
bb1bb022e4
"composer init --autoload" - Interactive generates PSR-4 autoloader in composer.json ( #9829 )
...
- Generates PSR-4 autoload entry in composer.json.
- Run dump-autoload, if no dependencies are set
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
d806013091
Add more details when require/init fails to find a matching package due to the platform requirements
3 years ago
Jordi Boggiano
b7d770659b
CS fixes
4 years ago
Jordi Boggiano
6a2f9870a7
Warn when init is being used non-interactively without any args passed in, instead of silently overwriting the file
4 years ago
Jordi Boggiano
ffc0f86fc0
Fix warnings in composer require to show when repo prio is at fault, refs #9371
4 years ago
Nils Adermann
289972a177
Remove useless null check, follow up to #9345
4 years ago
Nils Adermann
cbcc3a3080
Remove trailing commas for function calls
4 years ago
Fabien Potencier
d5245387f3
Fix error message
4 years ago
Jordi Boggiano
24abd233ec
Merge branch 'master' into code-improvements
4 years ago
Jordi Boggiano
adeabdbd56
Merge branch '1.10'
4 years ago
Jordi Boggiano
bc1cb1636d
Remove dead code, fixes #9277
4 years ago
Simon Berger
80d71ccb3f
Merged isset, unset and str_replace calls
4 years ago
Simon Berger
a6475a7118
Removed unused variables, properties and parameters of private functions
4 years ago