Jordi Boggiano
6a466a120a
Enable strict types on all files
2 years ago
Jordi Boggiano
3cdca37e85
Fix strict type issues
2 years ago
Jordi Boggiano
6da38f83a0
Add parameter types to all the things
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
abdc6893a6
Add void types where no return statement is present
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
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
Jordi Boggiano
24ce1eddbd
Add composer/pcre dependency and use it everywhere instead of preg_*
2 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
Samuel Felipe
3ccb54832b
PHPStan level 6 in src/Composer/Command ( #10214 )
3 years ago
Jordi Boggiano
9599eb613b
Type annotations
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
Nicolas Grekas
eac069bf36
Fix --no-scripts disabling events for plugins
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
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
18e268556d
Fix type warning on php8.1, refs #9770
3 years ago
Brandon Kelly
7652408829
Only call sapi_windows_set_ctrl_handler() for CLI requests ( #9771 )
3 years ago
Jordi Boggiano
b7d770659b
CS fixes
4 years ago
Jordi Boggiano
f2f3b03fec
Fix config/create-project handling of repositories to prepend them by default as this is most likely the goal, fixes #9371
4 years ago
Jordi Boggiano
badd1f2146
Remove silly default values of false on Installer class, refs #9204
4 years ago
Simon Berger
974e7ba296
Removed unneccesary elseifs
4 years ago
Simon Berger
002fd39bc6
Removed passing of parameters with default value
4 years ago
Jordi Boggiano
57b4016f8a
Show default value instead of optional, refs #9181
4 years ago
Samuel Ryan
a66db48673
✨ Ask for target directory when using `create-project`
4 years ago
Jordi Boggiano
c3028c02d9
Merge branch '1.10'
4 years ago
Jordi Boggiano
eac03e16e7
Reuse repository manager and others directly from the Composer instance, refs #9057
4 years ago
Jordi Boggiano
433968de17
Fix usage of create-project with local filesystem repos
4 years ago
Jordi Boggiano
a2ab6f2b54
Add support for multiple --repository additions in create-project, and make --add-repository delete the lock file, fixes #8853
4 years ago
Shaun Johnston
b4ecca5d0b
Supply event dispatcher in Create Project Command
...
This update allows composer plugins to intercept the
create-project command to inject additional functionality such as
providing additional remote filesystem handling.
4 years ago
Jordi Boggiano
05dacbdabb
Rename DEV_MASTER_ALIAS to DEFAULT_BRANCH_ALIAS
4 years ago
Jordi Boggiano
085fe4e7e5
Add --no-progress support and a few more fixes
4 years ago
Jordi Boggiano
c9571f90b4
Run phpstan with regular output and then run again to cs2pr if there was an error, to keep usable output in CI logs
4 years ago
Jordi Boggiano
a4a617abb4
Reduce amount of Filesystem/ProcessExecutor instantiations, add lots of docblocks
4 years ago
Jordi Boggiano
816d8e9d1b
Fix phpstan error
4 years ago
Jordi Boggiano
396ad87fd0
Add handling of ctrl-C on windows for php 7.4+
4 years ago
Jordi Boggiano
c8efb50d39
Change the single requirement ignore from --ignore-platform-reqs=xx to --ignore-platform-req=xx to avoid BC issues
4 years ago
Jordi Boggiano
e85da00dff
Add a way to ignore only some packages in --ignore-platform-reqs, and make the platform check ignore those packages which were ignored as requirements, fixes #8861
4 years ago
Jordi Boggiano
beded906ba
Merge branch '1.10'
4 years ago
Jean-Michel DELEHAYE
42fc372e52
Add function_exists() for 'pcntl_signal'
4 years ago
Jordi Boggiano
1ef352751c
Fix display issue in create-project when installing dev-master
4 years ago
Jordi Boggiano
1d68e85433
Fix usage
4 years ago
Jordi Boggiano
8a2dd1baef
Adjust all usages of VersionSelector to the new API
4 years ago
Jordi Boggiano
8a83d5cc35
Fix create-project command
4 years ago
Jordi Boggiano
d63eb8179e
Merge branch 'master' into 2.0
4 years ago
Jordi Boggiano
5d970022e8
Normalize output of create-project target path, refs #8609 , refs #8412
4 years ago
Volker Killesreiter
e532e70b22
Revert "Chore: Use consistent directory path"
...
This reverts commit 43e0321ee7
.
4 years ago
Jordi Boggiano
bc002ae1fb
Merge branch 'master' into 2.0
4 years ago
Stephan Vock
2a564a9f36
Create project: add option to add the repository to the composer.json
4 years ago
Jordi Boggiano
2f4ea3a463
Fix show command, refactor RepositorySet constructor
4 years ago