173 Commits (bd6403a6bef36fdbefdb287dc7e26286d5e06e5e)

Author SHA1 Message Date
Jordi Boggiano bd6403a6be
Fix newly surfaced errors 2 years ago
Jordi Boggiano 615530f0a1
Merge branch '2.2' into main, update baseline (2085, 104) 2 years ago
Jordi Boggiano 0a8dfe6ef7
Clarify that autoloader-suffix should be a non-empty-string, fixes #10720 (#10725) 2 years ago
Stephan 6c3958ec86
Add warning if host is accessed via verify_peer or verify_peer_name disabled (#10722) 2 years ago
Jordi Boggiano be4b70ce79
Fix phpstan issues 2 years ago
Jordi Boggiano 2bd524fa9b
Fix handling of missing HOME env, fixes #10670 2 years ago
Jordi Boggiano ef5a128973
Fix type error 2 years ago
Jordi Boggiano 6a466a120a
Enable strict types on all files 2 years ago
Jordi Boggiano 0db443ba5f
Add visibility to all consts, fixes #10550 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 a16ed3d0ed
Add return types to private/internal methods 2 years ago
Jordi Boggiano abdc6893a6
Add void types where no return statement is present 2 years ago
Jordi Boggiano 32852304d0
Make use of some new PHP features 2 years ago
Jordi Boggiano bab974575c
Merge branch '2.2' into main 2 years ago
Jordi Boggiano e3d99cac59
Fix phpstan issues, update baseline and pin PHPStan version in 2.2 branch (#10474) 2 years ago
Jordi Boggiano 4e6d54b731
Fix all 5.3 $this-in-closure usages 2 years ago
Jordi Boggiano a3e91b5be6
Add allow-plugins config value (#10314)
Fixes #5659

- Automatically switch off plugins by default in July 2022
- reword hash into object in schema

Co-authored-by: Nils Adermann <naderman@naderman.de>
2 years ago
Jordi Boggiano 24ce1eddbd
Add composer/pcre dependency and use it everywhere instead of preg_* 2 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>
2 years ago
Helmut Hummel f12a5b8214
Expose path to autoload in a global var for binaries (#10137)
Always create proxy files for package binaries,
to avoid not working binaries in case the package
was installed from a path repository and is itself linked

If the binary is a PHP script, a global variable is now exposed,
which holds the path to the vendor/autoload.php file.
This variable can the be used in the binaries to include this file
without guessing where the path to the vendor folder might be.

Additionally it is now checked on binary creation whether
the reference binary has a shebang and if not, generates
a much simple proxy code, because the stream wrapper code,
that is required for PHP <8 to omit the shebang from the output,
can be skipped.

Fixes: #10119

Co-authored-by: Jordi Boggiano <j.boggiano@seld.be>
3 years ago
Stephan 44c5b6cde6
Config: add source option for command to show where a config value is loaded from (#10129) 3 years ago
Jordi Boggiano bd4d624cc7
Read first from $_SERVER and $_ENV before using getenv (#10218) 3 years ago
Martin Herndl 3645d3042c
Add types to root namespace (#10213) 3 years ago
Jordi Boggiano e137046558
Type annotations 3 years ago
Jordi Boggiano d1c8a4d1b4
Lots of typing improvements 3 years ago
Jordi Boggiano 2d54a27ebc
Fix config support for new bin-compat value, refs #9959 3 years ago
Brad Jones dd625669e8
Introduce gitlab-protocol option to force the gitlab repos to use https or git protocol (#9401) 3 years ago
Jordi Boggiano 8a3f4a8400
Add secure-svn-domains config option to mark secure svn:// hostnames, fixes #9872 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 52d7c6c383
Fix/add tests and also handle case where a json object is used 3 years ago
Jordi Boggiano 4130d388fe
Auto-detect packagist.org default repo replacements and deactivate it if it is redefined 3 years ago
Jordi Boggiano b7d770659b
CS fixes 4 years ago
Jordi Boggiano 6c31744c04
Disable full platform-check for extensions by default, now set to php-only, refs #9412 4 years ago
Jordi Boggiano 04aad524ec
Fix gitlab-domains/github-domains to avoid overwriting the default when another domain is configured, refs #9373 4 years ago
Jordi Boggiano 24abd233ec
Merge branch 'master' into code-improvements 4 years ago
Jordi Boggiano f966de94a9
Merge branch '1.10' 4 years ago
Jordi Boggiano 28fe3baf9c
Disable secure-http automatically when disable-tls is enabled, fixes #9235 4 years ago
Simon Berger 974e7ba296 Removed unneccesary elseifs 4 years ago
Jordi Boggiano 90332f1dbd
Add a readonly mode to the cache, fixes #9150 4 years ago
Jordi Boggiano 875a4784ed
Reorg config class a little 4 years ago
Jordi Boggiano 2c8a4a1b93
Add platform-check config option to disable platform_check.php generation, and disable it for Composer 4 years ago
Jordi Boggiano f964b83018
Add bearer support in config command and add to docs/schema, refs #8671 4 years ago
Arnout Boks 7c5e5e3ede Add option to disable the lock file
When the `lock` option is set to false, composer will not write a
`composer.lock` file to disk. This signals that the package is meant
to be developed with unlocked and always updated dependencies. At the
moment, both `install` and `update` are allowed to install the
dependencies for such a package. If #6822 is implemented, only `update`
should be used for packages without a lockfile.

https://github.com/composer/composer/issues/8354
5 years ago
Kevin Boyd 5633a68689 Add a helper to disable process timeouts
The helper can be included in custom script definitions by calling
"Composer\\Config::disableProcessTimeout".

Example:

{
  "scripts": {
    "watch": [
      "Composer\\Config::disableProcessTimeout",
      "vendor/bin/long-running-script --watch"
    ]
  }
}
5 years ago
Jordi Boggiano 11bfe9970f
Merge pull request #7912 from kathyoungaligent/feature/no-api-config
Feature/no api config
5 years ago
Kath Young fbb9d20c33 Adjusted config name to be more descriptive, added documentation 5 years ago
Kath Young 3d1e0e79cc Allow for no-api for Github to be a composer configuration as well as repo specific 5 years ago
bugreportuser 2739fc05e9 Read htaccess-protect as a bool 5 years ago
Jordi Boggiano ff59bbdab0 CS fixer 6 years ago