Jordi Boggiano
6b81140f81
Fix many PHPStan errors in DependencyResolver namespace ( #12121 )
2024-09-21 13:53:33 +02:00
Jordi Boggiano
3a2a18175d
Add ability to reinstall packages by type ( #12114 )
...
Fixes #11364
2024-09-21 13:37:55 +02:00
Jordi Boggiano
58905ffe4e
Validate licenses passed into init command ( #12115 )
...
Fixes #10838
2024-09-19 17:07:28 +02:00
Jordi Boggiano
a5d0d73e00
Show warnings for each missing platform package in create-project, fixes #10736 ( #12120 )
2024-09-19 17:06:49 +02:00
Jordi Boggiano
a03331bd21
Add --strict-ambiguous to dump-autoload command ( #12119 )
...
Fixes #6221
2024-09-19 11:40:57 +02:00
Jordi Boggiano
3e7b3b26df
Check connectivity to custom composer repos in diagnose command
2024-09-19 10:24:30 +02:00
Juliette
8ae6fa1205
PHP 8.4 | Remove use of `E_STRICT` ( #12116 )
...
The `E_STRICT` constant is deprecated as of PHP 8.4 and will be removed in PHP 9.0 (commit finally went in today).
The error level hasn't been in use since PHP 8.0 anyway and was only barely still used in PHP 7.x, so removing the exclusion from the `error_reporting()` setting in these script shouldn't really make any difference in practice.
Ref:
* https://wiki.php.net/rfc/deprecations_php_8_4#remove_e_strict_error_level_and_deprecate_e_strict_constant
Co-authored-by: jrfnl <jrfnl@users.noreply.github.com>
2024-09-19 09:34:35 +02:00
Jordi Boggiano
dea55ec139
Respect sort-packages option when adding plugins to the allow-plugins list, fixes #11348
2024-09-18 16:57:22 +02:00
Jordi Boggiano
ad6198ad2a
Ensure stability-flags, platform and platform-dev keys are objects in composer.lock
2024-09-18 15:45:26 +02:00
Carlos Granados
c8838f198e
Add option to run bump after update ( #11942 )
...
* Add option to run bump after update
* Convert the option into a bool | string parameter and change a couple of texts
* Apply suggestions from code review
* Fix tests
---------
Co-authored-by: Jordi Boggiano <j.boggiano@seld.be>
2024-09-18 15:34:25 +02:00
Jordi Boggiano
17930441a1
Add a way to control which scripts get args and where ( #12086 )
...
Add support for `@no_additional_args` and `@additional_args` tags inside script handlers.
2024-09-18 14:44:55 +02:00
Jordi Boggiano
8bc8c4383a
Merge branch '2.7'
2024-09-18 11:00:51 +02:00
Joe
8f455d7c0c
Add allow-missing-requirements config setting to ignore missing requirements ( #11966 )
...
* Add allow-missing-requirements configuration to ignore error during install if there are any missing requirements
* Add test for allow-missing-requirements config
---------
Co-authored-by: Joe <joe@wpj.cz>
2024-09-18 11:00:09 +02:00
Job Vink
be7d9abc66
Improve interactive package updates ( #11990 )
...
* Improve interactive package updates
* Exclude platform packages and up to date packages, follow stability flags, ignore-platform-reqs etc
* Add tests and support for lock file + empty lock/vendor
---------
Co-authored-by: Jordi Boggiano <j.boggiano@seld.be>
2024-09-18 10:43:42 +02:00
Jordi Boggiano
07248f4323
Fix require command skipping new stability-flags from the lock file, fixes #11698 ( #12112 )
2024-09-18 09:16:31 +02:00
Jordi Boggiano
12031542ba
Add suggestions of provider packages for ext- and lib- packages ( #12113 )
...
Fixes #11669
2024-09-18 08:49:59 +02:00
John Stevenson
bb8387e5a0
Remove proxy transition fallback ( #11938 )
2024-09-17 16:14:47 +02:00
Mohamed Hubail
21bf74d2c7
Add `--abandoned` option ( #12091 )
...
* Add `--abandoned` option
* Refactoring
- Use `Auditor::ABANDONEDS` in `Config.php`
- Drop `getAuditAbandoned()` from `BaseCommand.php`
* Modify cli docs
2024-09-17 15:44:55 +02:00
Jordi Boggiano
fde6a87f64
Sort problem rules ( #12111 )
2024-09-17 14:13:58 +02:00
Jordi Boggiano
f42fb617e6
Bump branch-alias to 2.8
2024-09-17 14:08:38 +02:00
Jordi Boggiano
f17df6d5a1
Fix handling of platform packages in why-not command and partial updates, fixes #12104 ( #12110 )
2024-09-17 13:31:33 +02:00
Jordi Boggiano
3e7b826904
Avoid opening php://stdin multiple times, fixes #12107
2024-09-17 09:47:23 +02:00
Jordi Boggiano
1b5b56f234
Fix handling of COMPOSER_ROOT_VERSION to normalize according to expectations, fixes #12101 ( #12109 )
2024-09-17 08:38:43 +02:00
Jordi Boggiano
5f2b91aea8
Revert "fix(Locker): don't store transport-options.ssl within the lock-file ( #12019 )"
...
This reverts commit 03bbfdd8f4
.
2024-09-16 11:31:52 +02:00
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