27 Commits (6a466a120a404d1c5d492e5ca715841c491517fc)

Author SHA1 Message Date
Jordi Boggiano 6a466a120a
Enable strict types on all files 2 years ago
Jordi Boggiano 6da38f83a0
Add parameter types to all the things 2 years ago
Jordi Boggiano 86fb8d4412
Fix CS 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 5805a68645
Fix some todos dropping support for older Symfony releases 2 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
2 years ago
Yehuda Katz ebf4cbdc69
Add COMPOSER_NO_DEV environment variable to set the --no-dev flag (#10262) 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 c65d09dff7
Fix @inheritDoc annotations 3 years ago
Samuel Felipe 3ccb54832b
PHPStan level 6 in src/Composer/Command (#10214) 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 7888d3fb97
Align result descriptions to make search output more readable, fixes #9455 3 years ago
Jordi Boggiano f13282e555
Change default preferred-install to dist, add --prefer-install=auto|dist|source to allow specifying auto (#9603)
Fixes #9546
Fixes #9674
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
Simon Berger 687f886d56 Moved duplicated table render code to a new method in BaseCommand 4 years ago
Jordi Boggiano 7f308d986e
Add --with to update command to allow downgrading to a specific version/applying custom temporary constraints, fixes #8756 4 years ago
Matthew Brown 65903aacfd Fix type issues (#7996)
* Fix type issues found by Psalm
5 years ago
Gabriel Caruso 2a13bb2649 Fixes from PHPStan (#7687)
* fix docblocks

* remove redundant conditional

* fix wrong variable name

* fix wrong namespaces

* add missing private members

* remove unused/redundant arguments

* move testcase class

* exclude TestCase.php

* Tweak RuleWatchGraph type hints

* Tweak doc comment
6 years ago
Jordi Boggiano 0fdf746ebe Fix --no-plugins not working in certain edge cases 6 years ago
Jordi Boggiano d73aef5c8a Respect --no-plugins flag when firing pre-command-run event 6 years ago
Jordi Boggiano ccbbbccadb CAvoid calling PRE_COMMAND_RUN if no composer could be initialized 6 years ago
Jordi Boggiano 352aefe48c Add command name to the PreCommandRun event 6 years ago
Jordi Boggiano b1bfb9bb65 Add PRE_COMMAND_RUN event, fixes #7002 6 years ago
Fabien Potencier 69740bbbee Refactor some common logic in Command classes 8 years ago
Jordi Boggiano 7bcd336c95 Disable plugins across the board when --no-plugins is specified, fixes #5509 8 years ago
Bilal Amarni 92207da83a add isProxyCommand() to BaseCommand 8 years ago
Niels Keurentjes 692a3ed300 Renamed Composer\Console\Command to BaseCommand for consistency with other abstract base classes. 8 years ago