Jordi Boggiano
e4038e5e3b
Reverting release version changes
2024-09-04 14:43:28 +02:00
Jordi Boggiano
e30ccdd665
Release 2.7.9
2024-09-04 14:43:28 +02:00
Jordi Boggiano
1fcb6a5d53
Fix docker detection breaking on constrained environments, fixes #12095
2024-09-02 10:24:23 +02:00
Jordi Boggiano
4a34725682
Bump dependencies, fixes #12015
2024-09-01 22:17:55 +02:00
Jordi Boggiano
aca19582b5
Reverting release version changes
2024-08-22 15:28:36 +02:00
Jordi Boggiano
a2edd4e441
Release 2.7.8
2024-08-22 15:28:36 +02:00
Jordi Boggiano
a17096f5ba
Fix copy() sometimes failing on virtualbox shared folders, fixes #12057
2024-08-22 12:44:48 +02:00
Jordi Boggiano
bbb603490b
Fix duplicate libraries causing issues when conflicting extensions from core and pecl are installed concurrently ( #12093 )
...
Fixes #12082
2024-08-22 12:11:39 +02:00
Jordi Boggiano
39d9a5b6c5
Fix relative:true not being respected in path repo installs, fixes #12074 ( #12092 )
2024-08-22 11:45:25 +02:00
Jordi Boggiano
f931887304
Detect incorrectly configured COMPOSER env when set to a directory, refs #12049
2024-08-22 10:49:04 +02:00
Jordi Boggiano
e173d20450
Ensure COMPOSER_AUTH takes precedence over local auth.json, fixes #12084
2024-08-21 18:39:07 +02:00
Jordi Boggiano
8f3fed674b
Clean up md5/sha1 usages, upgrade algos where possible ( #12088 )
...
* Clean up md5/sha1 usages, upgrade algos where possible
* Fully qualify PHP_VERSION_ID constant usages
* Fix 7.2 build
2024-08-21 17:06:42 +02:00
Jordi Boggiano
556ca06906
Fix phpstan build with latest deps
2024-08-21 16:44:20 +02:00
Jordi Boggiano
48d345ac3e
Update deps, fix some phpstan issues
...
Update baseline (1484, 84)
2024-08-21 14:47:44 +02:00
Jordi Boggiano
3ba58ea3eb
Normalize namespaces in psr-0/psr-4 rules to fix edge cases, fixes #12028 ( #12063 )
2024-08-19 13:52:44 +02:00
Jordi Boggiano
9da1948585
Improvements to docker detection ( #12062 )
...
* Improvements to docker detection, fixes #11073
* Apply suggestions from code review
Co-authored-by: Dan Wallis <dan@wallis.nz>
2024-08-19 11:01:34 +02:00
Sam L
d3d378184b
Provide release-date/release-age and latest-release-date in composer outdated -A -f json ( #12053 )
2024-07-26 16:21:02 +02:00
Jordi Boggiano
d53cf81429
Fix various phpstan warnings
2024-07-26 09:32:22 +02:00
Jordi Boggiano
17f4984601
Make use of new PHP 8.4.0 function to replace implicit $http_response_header var ( #11995 )
2024-07-25 17:43:11 +02:00
Jordi Boggiano
39981a0e2b
Sanitize VCS URLs when building cache keys, fixes #11917 , closes #11918 ( #12043 )
2024-07-25 17:24:49 +02:00
Jordi Boggiano
eeff1c79ba
Fix addressability of branches containing # characters ( #12042 )
...
Fixes #12029
2024-07-25 16:46:57 +02:00
Jordi Boggiano
7504685a2e
Update phpstan and add composer/pcre extensions ( #12045 )
...
* Update phpstan and add composer/pcre extensions
* Update baseline (1516)
2024-07-25 16:28:25 +02:00
ADmad
029dda0b43
Fix deprecation notice on PHP 8.4 ( #12046 )
...
PHP 8.4 requires nullable arguments to be explicitly declared as such.
2024-07-25 16:26:39 +02:00
Jordi Boggiano
685add70ec
Refactor the BasePackage::$stabilities into a constant
2024-07-12 11:28:26 +02:00
Jordi Boggiano
bd03981ea7
Fix archive command crashing if a path cannot be realpathed on windows, fixes #11544
2024-07-11 09:29:55 +02:00
Jordi Boggiano
68f6498bd3
Only read first 500 bytes of a bin file to detect if it is a PHP script, refs #12032
2024-07-10 15:08:18 +02:00
Quỳnh Nguyễn
6ec76db926
Remove redundant boolean type casts ( #12033 )
2024-07-10 11:04:20 +02:00
Ilya Urvachev
03bbfdd8f4
fix(Locker): don't store transport-options.ssl within the lock-file ( #12019 )
2024-07-10 10:35:26 +02:00
Jordi Boggiano
b2832867e6
Fix some edge cases of tilde constraints in bump command ( #12038 )
...
* Fix: Add test case for not dropping patch version for tilde
* Fix some edge cases of tilde constraints in bump command, fixes #11218
---------
Co-authored-by: Matthias Vogel <git@kanti.de>
2024-07-10 09:47:37 +02:00
Jordi Boggiano
e61d4ad986
Update deps
2024-07-06 23:35:00 +02:00
Jordi Boggiano
01ce481f22
Reverting release version changes
2024-06-10 22:11:13 +02:00
Jordi Boggiano
291942978f
Release 2.7.7
2024-06-10 22:11:12 +02:00
Jordi Boggiano
04a63b324f
Add more characters for best fit encoding protection
2024-06-10 22:08:29 +02:00
Jordi Boggiano
3130a7455a
Fix windows parameter encoding to prevent abuse of unicode characters with best fit encoding conversion
2024-06-10 21:28:19 +02:00
Jordi Boggiano
ee28354ca8
Merge pull request from GHSA-47f6-5gq3-vx9c
2024-06-10 14:56:42 +02:00
Jordi Boggiano
6bd43dff85
Merge pull request from GHSA-v9qv-c7wm-wgmf
2024-06-10 14:56:13 +02:00
Jordi Boggiano
fa3b9582c3
Fix secure-http check to avoid bypass using emojis
2024-06-10 14:48:02 +02:00
Jordi Boggiano
137ec17c0a
Fix empty type support in init command, fixes #11999
2024-06-10 11:37:52 +02:00
Jordi Boggiano
9dfcf62335
Fix new platform requirements from composer.json not being checked when composer.lock is outdated, fixes #11989 ( #12001 )
2024-05-31 17:53:52 +02:00
Jordi Boggiano
dc857b4f91
Fixed PSR violations for classes not matching the namespace of a rule being hidden, fixes #11957
2024-05-31 17:52:05 +02:00
Jordi Boggiano
c1be804a0c
Fix UX when a non-required plugin is still present in vendor dir ( #12000 )
...
Composer now skips it and does not prompt if it is not allowed to run, fixes #11944
2024-05-31 10:29:56 +02:00
Jordi Boggiano
37d722e73c
PHPStan/tests updates ( #11996 )
...
* Remove a bunch of inline ignores and migrate all PHPUnit assertions to static calls
* Update baseline (1573, 93)
* Update commit hash
2024-05-29 23:12:06 +02:00
Jordi Boggiano
dd8af946fd
Fix tests
2024-05-29 22:08:42 +02:00
Jordi Boggiano
de5f7e3241
Fix handling of zip bombs when unzipping archives
2024-05-29 15:52:07 +02:00
Jordi Boggiano
3773f77527
Fix perforce arg not being escaped correctly
2024-05-29 15:03:59 +02:00
Jordi Boggiano
3c37a67c0c
Fix Filesystem::isLocalPath including windows checks on linux
2024-05-29 13:42:19 +02:00
Stephan
f38df849c2
BlockedIPs: reject job like other exceptions ( #11992 )
2024-05-29 13:00:27 +02:00
Jordi Boggiano
f83b6b1026
Enable new phpstan option
2024-05-27 17:11:31 +02:00
Jordi Boggiano
09e616fa1d
Update phpstan
2024-05-27 15:14:10 +02:00
Krzysztof Ciszewski
81b121bbdf
Fix composer error when git config safe.bareRepository is set to explicit ( #11969 )
2024-05-27 14:56:27 +02:00
Ondřej Mirtes
5bb30ca170
Update PHPStan ( #11976 )
...
* Update PHPStan
* Update inline ignores to `@phpstan-ignore` with error identifier
2024-05-22 09:09:04 +02:00
Sam B
d4b071bd1e
To enable to the TransportException code to be accessed in PHP < 8.1, make reflection property accessible ( #11974 )
2024-05-21 22:45:37 +02:00
John Stevenson
8d90eb694a
Add uopz warning from installer code ( #11988 )
2024-05-21 22:42:10 +02:00
Dan Wallis
ede152bd65
Close style tags to avoid bleed ( #11972 )
2024-05-12 22:55:40 +02:00
Yanick Witschi
829e0e767f
Re-use precalculated information ( #11968 )
...
Co-authored-by: Jordi Boggiano <j.boggiano@seld.be>
2024-05-08 14:27:20 +02:00
Krzysztof Ciszewski
4d7476ca30
composer#11852 fix: ability to remove autoload* keys ( #11967 )
2024-05-08 11:19:05 +02:00
Jordi Boggiano
2fe3244ddb
Reverting release version changes
2024-05-04 23:03:15 +02:00
Jordi Boggiano
fabd995783
Release 2.7.6
2024-05-04 23:03:15 +02:00
Jordi Boggiano
c2fd4d3ebb
Fix private autoloader callbacks breaking the new runtime autoloader handling code
2024-05-04 23:01:17 +02:00
Jordi Boggiano
f81e84164e
Reverting release version changes
2024-05-03 16:23:40 +02:00
Jordi Boggiano
29ac9cce40
Release 2.7.5
2024-05-03 16:23:40 +02:00
Jordi Boggiano
762f2a37f5
Tweak exit code for network errors to be 100, refs #11954
2024-05-02 16:49:44 +02:00
Jordi Boggiano
acf398281c
Fix transport exception not always using 255 exit code, fixes #11954
2024-05-02 16:09:13 +02:00
Jordi Boggiano
bcab1c4b8e
Fix Composer autoloader being hijackable by script/plugin event handlers ( #11955 )
2024-04-29 11:41:33 +02:00
Jordi Boggiano
d4396a85bf
Fix binary proxies having an absolute path to vendor dir when project dir is a symlink, fixes #11947
2024-04-29 11:32:47 +02:00
Jordi Boggiano
80631d2fc8
Fix one more case of unsetting a key in an object
2024-04-29 11:19:52 +02:00
Buster Neece
7c66169b7d
Add "uninstall" as alias to "remove". ( #11951 )
2024-04-29 11:03:03 +02:00
Jordi Boggiano
232f4e7a5c
Fix config command issue handling objects in some conditions, fixes #11945
2024-04-29 10:59:35 +02:00
maximilian-walter
ea28853305
Don't show root warning for Podman containers ( #11946 )
2024-04-28 17:34:36 +02:00
James Titcumb
6778f1f79a
Updated array shape of php-ext options ( #11950 )
2024-04-28 17:28:11 +02:00
Jordi Boggiano
b64e38eb86
Fix phpstan reports
2024-04-28 17:10:36 +02:00
Jordi Boggiano
a7c6125ee4
Workaround curl bug in 8.7.0/8.7.1, fixes #11913
2024-04-28 17:09:38 +02:00
Jordi Boggiano
0d5549f503
Reverting release version changes
2024-04-22 21:17:04 +02:00
Jordi Boggiano
a625e50598
Release 2.7.4
2024-04-22 21:17:03 +02:00
Barry vd. Heuvel
b0d98b9301
Load ProxyManager before running command to fix autoload order ( #11943 )
2024-04-22 21:12:57 +02:00
Jordi Boggiano
9f84f0c32b
Reverting release version changes
2024-04-19 21:40:58 +02:00
Jordi Boggiano
e49be96f3b
Release 2.7.3
2024-04-19 21:40:57 +02:00
Jordi Boggiano
69dc828ba7
Ensure type must be provided in init command
2024-04-19 17:27:50 +02:00
John Stevenson
70927f728e
Add FAQ about using a proxy ( #11933 )
2024-04-19 17:27:54 +02:00
Jordi Boggiano
b0ec0f96ad
Update phpstan deps and fix a few array_filter issues
2024-04-19 17:00:50 +02:00
Jordi Boggiano
3604996464
Ensure diagnose command works even if provider-includes disappears
2024-04-19 14:20:56 +02:00
John Stevenson
41fb6146b0
Improve proxy reporting in Diagnose command ( #11932 )
2024-04-19 14:18:55 +02:00
John Stevenson
3cc490d4c4
Refactor proxy handling to require https_proxy ( #11915 )
...
Composer has always allowed a single http_proxy (or CGI_HTTP_PROXY)
environment variable to be used for both HTTP and HTTPS requests. But
many other tools and libraries require scheme-specific values.
The landscape is already complicated by the use of and need for upper
and lower case values, so to bring matters inline with current practice
https_proxy is now required for HTTPS requests.
The new proxy handler incorporates a transition mechanism, which allows
http_proxy to be used for all requests when https_proxy is not set and
provides a `needsTransitionWarning` method for the main application.
Moving to scheme-specific environment variables means that a user may
set a single proxy for either HTTP or HTTPS requests. To accomodate this
situation during the transition period, an https_proxy value can be set
to an empty string which will prevent http_proxy being used for HTTPS
requests.
2024-04-17 14:34:26 +02:00
Jordi Boggiano
92f641ac3d
Fix show command output to remove v prefixes on versions, making for more uniform output, fixes #11925
2024-04-15 13:23:25 +02:00
Jordi Boggiano
89f057e0df
Ensure we clear the locally configured cache dir instead of default one, fixes #11921
2024-04-15 11:49:10 +02:00
Fabrizio Balliano
c5ff69ed58
Added support for buy_me_a_coffee ( #11902 )
2024-04-03 11:05:07 +02:00
Jordi Boggiano
f01ec4a98f
Ensure integer env vars do not cause a crash, fixes #11908
2024-04-03 10:36:39 +02:00
Jordi Boggiano
dd18a5fe55
Make methods chainable
2024-04-02 17:40:35 +02:00
Jordi Boggiano
9ced107af2
Ensure extension packages in platform repo have php-ext type set
2024-04-02 17:39:00 +02:00
Jordi Boggiano
94be5b5c14
Allow restricting allowed types as well, and allow configured ignored/allowed types in Installer class
2024-04-02 17:38:41 +02:00
Jordi Boggiano
2027d4975a
Fail status more softly unless -vvv is used, refs #11889
2024-03-21 11:16:56 +01:00
Jordi Boggiano
bc157ebea9
Fix phpdoc for new php-ext schema
2024-03-20 22:44:48 +01:00
Jordi Boggiano
07fa4255d6
Add support for php extension packages ( #11795 )
...
* Update schema
* Validate php-ext is only set for php-ext or php-ext-zend packages
* Make sure the pool builder excludes php-ext/php-ext-zend
2024-03-20 22:04:58 +01:00
gaxweb
a6947f116a
Allow for SSH URLs when using hg repository type ( #11878 )
2024-03-20 16:31:25 +01:00
Jordi Boggiano
75ccf6557a
Use reactphp/promise v2 compatible code
2024-03-20 12:32:54 +01:00
Jordi Boggiano
59152ad7aa
Fix phpstan errors in FileDownloader, update baseline (1642, 96)
2024-03-20 12:20:30 +01:00
Jordi Boggiano
5a1d506c77
Fix composer status command handling of failed promises, closes #11889
2024-03-20 12:20:30 +01:00
Brad Jones
d00f590354
Surface the advisory ID when CVE not present. ( #11892 )
2024-03-19 16:24:10 +01:00
Stephan
d36cd30d11
HttpDownloader: add option to prevent access to private network ( #11895 )
2024-03-19 16:18:59 +01:00
Jordi Boggiano
504e6c581a
Update deps and baseline (1663, 96)
2024-03-19 15:22:44 +01:00