1693 Commits (24ce1eddbdb4658e1d106a5d982951342f86f4d3)

Author SHA1 Message Date
Jordi Boggiano 24ce1eddbd
Add composer/pcre dependency and use it everywhere instead of preg_* 3 years ago
Tizian Schmidlin 4f789a5f6d
Add "use-parent-dir" config to configure prompt when no composer.json is present in current dir (#10307)
Fixes #10299

Co-authored-by: Jordi Boggiano <j.boggiano@seld.be>
3 years ago
Jordi Boggiano 1cfdaf43f1
Fix new file being leftover if require in new dir fails to resolve requirements 3 years ago
Jordi Boggiano d86049565d
Deactivate plugins before recreating a new composer instance and loading new plugins in require/remove commands, fixes #9962 3 years ago
Jordi Boggiano 91548d178b
Add support for setting platform packages to false to disable them (#10308)
Fixes #9664
3 years ago
Yehuda Katz ebf4cbdc69
Add COMPOSER_NO_DEV environment variable to set the --no-dev flag (#10262) 3 years ago
Rafael Dohms 78583ab678
Support ignore-platform-reqs in `composer outdated` (#10293)
This allows users to also find libraries that require major platform
changes to unlock updates.
It addresses #10291.
3 years ago
Jordi Boggiano f509c41280
Upgrade PHPStan to 1.0 (#10253)
Co-authored-by: Martin Herndl <martin@herndl.org>
3 years ago
Stephan 44c5b6cde6
Config: add source option for command to show where a config value is loaded from (#10129) 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 bd4d624cc7
Read first from $_SERVER and $_ENV before using getenv (#10218) 3 years ago
Jordi Boggiano 85f3bb070d
Add abandoned flag in search command output 3 years ago
Jordi Boggiano 3bb78fd1ee
Make new phar filename random to avoid possible concurrency issues, refs #10252 3 years ago
Jordi Boggiano 6a7264fc2d
Trigger autoloading of a few classes before executing self-update command, fixes #10252 3 years ago
Jordi Boggiano 9f433aba76
Fix 9999999-dev showing on composer show when no branch alias is defined for the default branch, fixes #10260 3 years ago
Jordi Boggiano 44b69ba77f
Upgrade php-cs-fixer to 3.x and fix CS 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
Anatoly Pashin b1a96a3141
PHPStan level 6 in src/Composer/Repository (#10197) 3 years ago
Jordi Boggiano 7d88de7d0b
Fix syntax 3 years ago
Jordi Boggiano 9599eb613b
Type annotations 3 years ago
Jordi Boggiano 4a7abd79c9
Fix 5.3 syntax 😒 3 years ago
Jordi Boggiano 759a3a9300
Fix require reverting changes even though dependency resolution succeeded if when something fails afterwards, closes #10118 3 years ago
Jordi Boggiano f776f52474
Hint composer require alternatives if dep resolution fails, fixes #10136 3 years ago
Jordi Boggiano f587237c55
Fix diagnose output when libz is not present for curl, refs #10153 3 years ago
Jordi Boggiano d1c8a4d1b4
Lots of typing improvements 3 years ago
Jordi Boggiano b3eebeb3b9
Merge pull request from GHSA-frqg-7g38-6gcf 3 years ago
Jordi Boggiano 532c6e7933
Fix show --all showing only the installed version if the package is installed, fixes #10095 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 d465df434c
Make sure diagnose command can run without proc_open, refs #9253 3 years ago
Jordi Boggiano deb4c48bbc
Avoid using an invalid path for InstalledFilesystemRepo in create-project and use an array repo instead, fixes #10020, fixes #10021 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 be58b36a35
Also look up 7zz on linux/macOS, fixes #9951 3 years ago
Jordi Boggiano db1d9e75be
Fix support for 7z command fallback on linux/macOS, fixes #9994 3 years ago
Ondřej Mirtes c65890d2d3
DiagnoseCommand - fix PHPDoc (#9991) 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
noniagriconomie 65259ac8e0 Add Composer version in about command 3 years ago
Sebastian Blank a9031e40eb
Add "symlink" option for "bin-compat" config (#9959) 3 years ago
Jordi Boggiano c668c24599
Fix autoload events not being dispatched when running dump-autoload command, fixes #9954 3 years ago
Jordi Boggiano 6e851edd70
Add `--dev` to `dump-autoload` command to allow force-dumping dev autoload rules even if dev requirements are not present, fixes #9946 3 years ago
Jordi Boggiano cbb1504910
Also do the change in ReinstallCommand 3 years ago
Nicolas Grekas eac069bf36
Fix --no-scripts disabling events for plugins 3 years ago
Jordi Boggiano 5a28f677da
Fix outdated legend and only show legend when there is output to be shown, fixes #9939 3 years ago
Jordi Boggiano 4c9e75c6e5
Fix CS 3 years ago
Jordi Boggiano 91dd175f74
Fix env var handling when variables_order includes E and symfony/console 3.3.15+ is used, fixes #9930 3 years ago
Jordi Boggiano d864c5743a
Add 7-zip presence check to diagnose command 3 years ago