Jordi Boggiano
6a466a120a
Enable strict types on all files
3 years ago
Alexander Schranz
1321bfca36
Add return types to closures ( #9 )
3 years ago
Jordi Boggiano
abdc6893a6
Add void types where no return statement is present
3 years ago
Jordi Boggiano
86fb8d4412
Fix CS
3 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
3 years ago
Jordi Boggiano
8053d794a8
Fix reinstall command not firing pre-install-cmd/post-install-cmd events, fixes #10508 ( #10514 )
3 years ago
Jordi Boggiano
8f1b3d21db
Add --no-scripts to all commands and disable plugins/scripts when running self-update ( #10371 )
...
* Add --no-scripts as global parameter available to all commands, and handle it by default when creating a Composer instance from Command::getComposer
* Disable scripts/plugins for self-update command, fixes #10351
3 years ago
Jordi Boggiano
24ce1eddbd
Add composer/pcre dependency and use it everywhere instead of preg_*
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
Samuel Felipe
3ccb54832b
PHPStan level 6 in src/Composer/Command ( #10214 )
3 years ago
Jordi Boggiano
cbb1504910
Also do the change in ReinstallCommand
3 years ago
Jordi Boggiano
4c9e75c6e5
Fix CS
3 years ago
Jordi Boggiano
4dbdae3ada
Sort uninstalls in reverse order from installs
3 years ago
Jordi Boggiano
5737a34e53
Sort package installs using Transaction
3 years ago
Jordi Boggiano
500efbe233
Add a reinstall command, fixes #3112
3 years ago