Search is not available for this dataset
hash
string
author
int32
committer_date
string
timezone
int64
parents
string
message
string
changes
string
language
string
9fbc386a7b88b37c63f93f16d3086cc5baf49683
281
2022-07-21 11:06:13+02:00
-7,200
['03e4d1926661dcd3acad021bf67cffc71523886c']
Fix package selector warnings to only show for versions that were actually skipped, #10942
[{'old_path': 'src/Composer/Command/RequireCommand.php', 'new_path': 'src/Composer/Command/RequireCommand.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -240,7 +240,7 @@ protected function execute(InputInterface $input, OutputInterface $output)\n if (count($inconsistentRequireKeys) > 0) {\n ...
PHP
8352ab8eb76a85af9b4bc8643bd0ef24d291d37d
281
2022-07-21 11:08:41+02:00
-7,200
['9fbc386a7b88b37c63f93f16d3086cc5baf49683']
Expand test to avoid regressions
[{'old_path': 'tests/Composer/Test/Package/Version/VersionSelectorTest.php', 'new_path': 'tests/Composer/Test/Package/Version/VersionSelectorTest.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -61,13 +61,15 @@ public function testLatestVersionIsReturnedThatMatchesPhpRequirements(): void\n $versionSelec...
PHP
e59812c4394169c295209cb0dd3405fb87a2c275
281
2022-07-21 14:40:21+02:00
-7,200
['595c47f7c9147005e8c971488af679a3e520f521']
Add prompt suggesting using --dev when require command is used with dev packages (#10960) * Add prompt suggesting using --dev when require command is used with packages which appear to be dev, fixes #10939
[{'old_path': 'doc/04-schema.md', 'new_path': 'doc/04-schema.md', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -119,6 +119,10 @@ Examples:\n - redis\n - templating\n \n+> **Note**: Some special keywords trigger `composer require` without the\n+> `--dev` option to prompt users if they would like to add these packag...
PHP
6cb5576a32879a7c0488251bb5a4503afc958037
281
2022-07-21 16:30:01+02:00
-7,200
['f8ac872c9f8d9efc55524ba8a2085e0056b56273']
Fix root package being part of package name suggestions where it should not be
[{'old_path': 'src/Composer/Command/CompletionTrait.php', 'new_path': 'src/Composer/Command/CompletionTrait.php', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -60,11 +60,15 @@ private function suggestRootRequirement(): \\Closure\n /**\n * Suggest package names from installed.\n */\n- private funct...
PHP
4aa3258d191dc5f047abd29eeca07097f2cbeccf
375
2022-07-22 10:16:22+02:00
-7,200
['6cb5576a32879a7c0488251bb5a4503afc958037']
Improve documentation about the new bash completion feature (#10962)
[{'old_path': 'doc/03-cli.md', 'new_path': 'doc/03-cli.md', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -15,9 +15,13 @@ calls `composer dump-autoload`.\n \n ## Bash Completions\n \n-To install bash completions you can run `composer completion bash > completion.bash` (put the file\n-in /etc/bash_completion.d/compo...
PHP
f0ab518c460a9ce4a725006a5559b4a26d742ab7
281
2022-07-22 10:37:48+02:00
-7,200
['4aa3258d191dc5f047abd29eeca07097f2cbeccf']
Ensure signalHandler is kept around and unregistered
[{'old_path': 'src/Composer/Console/Application.php', 'new_path': 'src/Composer/Console/Application.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -81,6 +81,9 @@ class Application extends BaseApplication\n */\n private $initialWorkingDirectory;\n \n+ /** @var SignalHandler */\n+ private $signalH...
PHP
01a7bb8e5f0de1d30aad14138d176942ad1430b7
281
2022-07-22 12:45:48+02:00
-7,200
['f0ab518c460a9ce4a725006a5559b4a26d742ab7']
Use dev version of symfony/console until 5.4.11 is out
[{'old_path': 'composer.json', 'new_path': 'composer.json', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -33,7 +33,7 @@\n "psr/log": "^1.0 || ^2.0 || ^3.0",\n "seld/jsonlint": "^1.4",\n "seld/phar-utils": "^1.2",\n- "symfony/console": "^5.4.7 || ^6.0.7",\n+ "symfony/console": ...
PHP
a3f7c31ea76fa8e22811df2e0ac156925f64da58
149
2022-07-25 13:13:32+02:00
-7,200
['01a7bb8e5f0de1d30aad14138d176942ad1430b7']
Add json format to Audit command (#10965)
[{'old_path': 'doc/03-cli.md', 'new_path': 'doc/03-cli.md', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -114,7 +114,7 @@ resolution.\n * **--no-progress:** Removes the progress display that can mess with some\n terminals or scripts which don\'t handle backspace characters.\n * **--audit:** Run an audit after in...
PHP
81ea5409e0b902e3b77500fadf05e652b4d7bd48
281
2022-07-30 14:19:06+02:00
-7,200
['a3f7c31ea76fa8e22811df2e0ac156925f64da58']
Set close status to not planned for auto closed support issues
[{'old_path': '.github/workflows/close-stale-support.yml', 'new_path': '.github/workflows/close-stale-support.yml', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -20,6 +20,7 @@ jobs:\n days-before-close: 15\n stale-issue-message: 'This issue has been automatically marked Stale and will be closed in ...
PHP
7377d1f0030e8050654f3fbc57c07b2c22eb630b
281
2022-08-16 10:41:07+02:00
-7,200
['d1f36f43c16750e0644020c9682dc028524cdfe9']
Uniformize command description format, fixes #10971
[{'old_path': 'src/Composer/Command/AboutCommand.php', 'new_path': 'src/Composer/Command/AboutCommand.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -28,7 +28,7 @@ protected function configure(): void\n {\n $this\n ->setName('about')\n- ->setDescription('Shows a short informa...
PHP
a6d872191c14a00d907801c284756100d44c3f86
281
2022-08-16 10:41:58+02:00
-7,200
['7377d1f0030e8050654f3fbc57c07b2c22eb630b']
Disable packagist.org loading by default in initTempComposer test cases if other repos are provided
[{'old_path': 'tests/Composer/Test/Command/ConfigCommandTest.php', 'new_path': 'tests/Composer/Test/Command/ConfigCommandTest.php', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -123,17 +123,17 @@ public function provideConfigReads(): \\Generator\n \'vendor\',\n ];\n yield \'read repos b...
PHP
135ca98eb025b49ad9e040d9f1c6c63c912d98a8
281
2022-08-16 10:46:07+02:00
-7,200
['a6d872191c14a00d907801c284756100d44c3f86']
Remove workaround for upstream bug
[{'old_path': 'tests/Composer/Test/Command/RequireCommandTest.php', 'new_path': 'tests/Composer/Test/Command/RequireCommandTest.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -58,11 +58,6 @@ public function testRequire(array $composerJson, array $command, string $expecte\n } else {\n $this-...
PHP
74a045783bbec3e63467676ca25e6dcd1f16976d
278
2022-08-16 10:52:01+02:00
-28,800
['135ca98eb025b49ad9e040d9f1c6c63c912d98a8']
Add SearchCommand tests (#10982) Signed-off-by: Ion Bazan <ion.bazan@gmail.com>
[{'old_path': None, 'new_path': 'tests/Composer/Test/Command/SearchCommandTest.php', 'type': <ModificationType.ADD: 1>, 'diff': '@@ -0,0 +1,129 @@\n+<?php declare(strict_types=1);\n+\n+/*\n+ * This file is part of Composer.\n+ *\n+ * (c) Nils Adermann <naderman@naderman.de>\n+ * Jordi Boggiano <j.boggiano@seld.be>\...
PHP
1f0bd51f5508c62e60d81d4efd5ee6c95c3aad5f
242
2022-08-16 11:08:03+02:00
-3,600
['b0674c421a2f8739bfee4bda72d297142683fc48']
GitHubDriver: stricter URL validation to avoid issues with undefined index owner (#10985)
[{'old_path': 'src/Composer/Repository/Vcs/GitHubDriver.php', 'new_path': 'src/Composer/Repository/Vcs/GitHubDriver.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -59,7 +59,7 @@ class GitHubDriver extends VcsDriver\n */\n public function initialize()\n {\n- if (!Preg::isMatch('#^(?:(?:https...
PHP
6457a88aa18cbc5972d076c46716c12b9f7fa551
281
2022-08-16 11:15:52+02:00
-7,200
['1f0bd51f5508c62e60d81d4efd5ee6c95c3aad5f']
Fix COMPOSER_NO_DEV to work with --update-no-dev for require/remove commands as well, refs #10995
[{'old_path': 'src/Composer/Command/BaseCommand.php', 'new_path': 'src/Composer/Command/BaseCommand.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -165,6 +165,11 @@ protected function initialize(InputInterface $input, OutputInterface $output)\n $input->setOption('no-dev', true);\n }...
PHP
f2141dd3ea419745319ce3ac4ebdf583fef22e31
281
2022-08-16 11:25:15+02:00
-7,200
['598c1c75732b59d37e7a9de9bc16036a0f2a0107']
Fix tests from #10985
[{'old_path': 'tests/Composer/Test/Repository/Vcs/GitHubDriverTest.php', 'new_path': 'tests/Composer/Test/Repository/Vcs/GitHubDriverTest.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -346,7 +346,7 @@ public function testPrivateRepositoryNoInteraction()\n * @param string $url\n * @return void\n ...
PHP
2fd4275e62ef438373ec21cfb805bf1340dda180
182
2022-08-16 11:28:46+02:00
25,200
['f1877afc0b57cbbe2072834245aafbd5ac5e2bff']
Update 03-cli.md (#10995) Crosslink COMPOSER_NO_DEV
[{'old_path': 'doc/03-cli.md', 'new_path': 'doc/03-cli.md', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -109,7 +109,7 @@ resolution.\n installation and show you what would happen.\n * **--dev:** Install packages listed in `require-dev` (this is the default behavior).\n * **--no-dev:** Skip installing packages l...
PHP
104bf0d75d9b9b6b4d9c462d6f7061f41ec13cc8
281
2022-08-16 11:44:21+02:00
-7,200
['f2141dd3ea419745319ce3ac4ebdf583fef22e31']
Handle 404s gracefully when loading providers in ComposerRepo, fixes #10974
[{'old_path': 'src/Composer/Repository/ComposerRepository.php', 'new_path': 'src/Composer/Repository/ComposerRepository.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -607,7 +607,14 @@ public function getProviders($packageName)\n $result = array();\n \n if ($this->providersApiUrl) {\n+ ...
PHP
2152b20a9483ea72243008ab95ae6e3bd639b759
1
2022-08-16 11:45:35+02:00
25,200
['104bf0d75d9b9b6b4d9c462d6f7061f41ec13cc8']
Correct prohibits/why-not example command (#10994) Running the example command `composer prohibits php:8` returns an error, "Not enough arguments (missing: "version")."
[{'old_path': 'doc/03-cli.md', 'new_path': 'doc/03-cli.md', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -617,7 +617,7 @@ Note that you can also specify platform requirements, for example to check\n whether you can upgrade your server to PHP 8.0:\n \n ```sh\n-php composer.phar prohibits php:8\n+php composer.phar p...
PHP
41d6467b3bf6e86262f90b6fd70f1d1e4b01fa72
485
2022-08-16 13:34:18+02:00
-7,200
['41a13fa0a11aafcf1b1c11b75face72d0839e01b']
Added token refresh for GitLab to support GitLab 15+ (#10988) Co-authored-by: Jordi Boggiano <j.boggiano@seld.be>
[{'old_path': 'phpstan/baseline.neon', 'new_path': 'phpstan/baseline.neon', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -4585,7 +4585,7 @@ parameters:\n \n \t\t-\n \t\t\tmessage: "#^Only booleans are allowed in an if condition, string\\\\|null given\\\\.$#"\n-\t\t\tcount: 1\n+\t\t\tcount: 2\n \t\t\tpath: ../src/C...
PHP
e82050b05d87a2c3e7cf503f00cc293f9e231cda
281
2022-08-16 13:40:50+02:00
-7,200
['41d6467b3bf6e86262f90b6fd70f1d1e4b01fa72']
Fix remove command suggestions to only suggest required packages, fixes #10964
[{'old_path': 'src/Composer/Command/RemoveCommand.php', 'new_path': 'src/Composer/Command/RemoveCommand.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -44,7 +44,7 @@ protected function configure()\n ->setName('remove')\n ->setDescription('Removes a package from the require or require-de...
PHP
058beef20a0131546eb448ba097eea9244a2bd29
81
2022-08-16 14:19:53+02:00
-7,200
['e82050b05d87a2c3e7cf503f00cc293f9e231cda']
CheckPlatformReqs: Add json format output (#10979) Co-authored-by: Jordi Boggiano <j.boggiano@seld.be>
[{'old_path': 'doc/03-cli.md', 'new_path': 'doc/03-cli.md', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -413,6 +413,12 @@ Unlike update/install, this command will ignore config.platform settings and\n check the real platform packages so you can be certain you have the required\n platform dependencies.\n \n+### Op...
PHP
82e3059c6ee347c7486522cc70ba23cc92072ec9
281
2022-08-16 15:16:56+02:00
-7,200
['058beef20a0131546eb448ba097eea9244a2bd29']
Fix plugin output to indicate when plugins are globally installed even while running global commands, fixes #10978
[{'old_path': 'src/Composer/Factory.php', 'new_path': 'src/Composer/Factory.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -435,6 +435,10 @@ public function createComposer(IOInterface $io, $localConfig = null, $disablePlu\n $pm = $this->createPluginManager($io, $composer, $globalComposer, $disableP...
PHP
cc33db92577f365c86b0c088b93323805f2ad964
281
2022-08-16 15:53:57+02:00
-10,800
['82e3059c6ee347c7486522cc70ba23cc92072ec9']
Only fetch remote default branch for mirrored git repos, not local ones, refs #10949 (#10996)
[{'old_path': 'src/Composer/Repository/Vcs/GitDriver.php', 'new_path': 'src/Composer/Repository/Vcs/GitDriver.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -95,12 +95,14 @@ public function getRootIdentifier(): string\n $this->rootIdentifier = 'master';\n \n $gitUtil = new GitUtil($this...
PHP
037b11e35f2560d126989830bf60b02734b3043e
281
2022-08-16 16:06:56+02:00
-7,200
['ff65ee2662d22928cbe4e92dc0de098c630b3ef2']
Update baseline (1894, 99)
[{'old_path': 'phpstan/baseline-8.1.neon', 'new_path': 'phpstan/baseline-8.1.neon', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -120,16 +120,6 @@ parameters:\n \t\t\tcount: 1\n \t\t\tpath: ../src/Composer/Installer/BinaryInstaller.php\n \n-\t\t-\n-\t\t\tmessage: "#^Parameter \\\\#1 \\\\$callback of function call_...
PHP
9b6d27f810967ee693f53c00126c3483303fe115
293
2022-08-17 11:44:18+02:00
-7,200
['55990a48a9603e53965bb3989f008de06b8494b4']
Environment variable for `--no-audit`. (#10998) Fixes #10997
[{'old_path': 'doc/03-cli.md', 'new_path': 'doc/03-cli.md', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -194,7 +194,7 @@ and this feature is only available for your root package dependencies.\n * **--dev:** Install packages listed in `require-dev` (this is the default behavior).\n * **--no-dev:** Skip installing ...
PHP
f95471f2217cce7effa8f24e0209f78163f94ea7
281
2022-08-17 12:08:59+02:00
-10,800
['9b6d27f810967ee693f53c00126c3483303fe115']
Show/outdated command fixes (#11000) * Fix show command showing the split of direct/transitive deps from outdated, fixes #10999 * Fix a few minor edge cases in show command, add tests for show and outdated commands
[{'old_path': 'src/Composer/Command/ShowCommand.php', 'new_path': 'src/Composer/Command/ShowCommand.php', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -291,7 +291,7 @@ protected function execute(InputInterface $input, OutputInterface $output)\n $hint .= \', try using --platform (-p) to show pla...
PHP
6e205a0c843b981719720ca402e408615f055889
281
2022-08-17 13:23:16+02:00
-7,200
['f95471f2217cce7effa8f24e0209f78163f94ea7']
Fix minor bug in process executor mock
[{'old_path': 'tests/Composer/Test/Mock/ProcessExecutorMock.php', 'new_path': 'tests/Composer/Test/Mock/ProcessExecutorMock.php', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -178,7 +178,7 @@ private function doExecute($command, string $cwd, bool $tty, &$output = null)\n }\n \n if ($stdout) {\n- ...
PHP
131da999ac571bcd5bc3dae535dd392d1a36cb53
281
2022-08-17 14:20:07+02:00
-10,800
['6e205a0c843b981719720ca402e408615f055889']
Fix CS (#11003)
[{'old_path': '.php-cs-fixer.php', 'new_path': '.php-cs-fixer.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -24,12 +24,12 @@\n return $config->setRules([\n '@PSR2' => true,\n 'binary_operator_spaces' => true,\n- 'blank_line_before_statement' => array('statements' => array('declare', 're...
PHP
d48acda4856ee351a75fa9518f62e2874f4c7a88
281
2022-08-17 14:59:24+02:00
-7,200
['131da999ac571bcd5bc3dae535dd392d1a36cb53']
Add RuleReasonDataReturnTypeExtension to resolve ReasonData types where possible in PHPStan
[{'old_path': 'phpstan/rules.neon', 'new_path': 'phpstan/rules.neon', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -8,3 +8,7 @@ services:\n class: Composer\\PHPStan\\ConfigReturnTypeExtension\n tags:\n - phpstan.broker.dynamicMethodReturnTypeExtension\n+ -\n+ class: Composer\\...
PHP
c5290876318942e418e6dbd1b0680be59df954e8
218
2022-08-17 15:11:34+02:00
-10,800
['c4d8061ebf3865b83c5f7916134d15c2cc965216']
performance: Do not create a local cache repo for local repos (#11001)
[{'old_path': 'src/Composer/Downloader/GitDownloader.php', 'new_path': 'src/Composer/Downloader/GitDownloader.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -60,6 +60,11 @@ public function __construct(IOInterface $io, Config $config, ?ProcessExecutor $p\n */\n protected function doDownload(PackageInte...
PHP
20b3e3e79c5dd62d65b0eafe3d968a31a05b1c31
320
2022-08-17 23:24:40+02:00
-7,200
['6b31fbec011f033f7d67f60ae0e6aa5dd861bdd4']
Fix docs for issue composer/satis#656 (#11005)
[{'old_path': 'doc/articles/handling-private-packages.md', 'new_path': 'doc/articles/handling-private-packages.md', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -34,9 +34,11 @@ packages, or your own. You can get it from\n \n For example let\'s assume you have a few packages you want to reuse across your\n company ...
PHP
cad5dc5b8baa770cfce0990e340e539e34cdec90
532
2022-08-20 07:41:14+02:00
14,400
['20b3e3e79c5dd62d65b0eafe3d968a31a05b1c31']
Match default choice to actual default (#11010) The 'Y' is capital, so Yes should be the default choice and is what most people would want, but No was the default.
[{'old_path': 'src/Composer/Command/SelfUpdateCommand.php', 'new_path': 'src/Composer/Command/SelfUpdateCommand.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -596,7 +596,7 @@ protected function tryAsWindowsAdmin(string $localFilename, string $newFilename)\n $helpMessage = 'Please run the self-update c...
PHP
7ccf230390da3af45d87c64ada6e2b78f2d1ddfb
281
2022-08-20 07:42:20+02:00
-10,800
['cad5dc5b8baa770cfce0990e340e539e34cdec90']
Fix cache invalidation issue when a git tag gets created on an old ref after the cache is populated, fixes #11002 (#11004)
[{'old_path': 'src/Composer/Downloader/GitDownloader.php', 'new_path': 'src/Composer/Downloader/GitDownloader.php', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -75,7 +75,7 @@ protected function doDownload(PackageInterface $package, string $path, string $u\n $this->io->writeError(" - Syncing <info>" ....
PHP
51774693c72905cb6044571e1c9ffd9b81b2c2fd
262
2022-08-20 08:34:38+02:00
-7,200
['7ccf230390da3af45d87c64ada6e2b78f2d1ddfb']
Do not apply non-string package link constraints in ArrayLoader (#11009)
[{'old_path': 'src/Composer/Package/Loader/ArrayLoader.php', 'new_path': 'src/Composer/Package/Loader/ArrayLoader.php', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -364,6 +364,9 @@ public function parseLinks(string $source, string $sourceVersion, string $descri\n {\n $res = [];\n foreach ($lin...
PHP
d2d84740139af5afd75d0b9829d8892000c706e1
262
2022-08-20 08:58:17+02:00
-7,200
['51774693c72905cb6044571e1c9ffd9b81b2c2fd']
Do not apply non-array package links in ArrayLoader (#11008)
[{'old_path': 'src/Composer/Package/Loader/ArrayLoader.php', 'new_path': 'src/Composer/Package/Loader/ArrayLoader.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -55,7 +55,9 @@ public function load(array $config, string $class = 'Composer\\Package\\CompletePa\n $package = $this->createObject($config, $c...
PHP
ceb8bef778b98ae63e61ed688f8972aceb17c4fe
495
2022-08-20 09:24:25+02:00
-7,200
['d2d84740139af5afd75d0b9829d8892000c706e1']
Adding hint what "Direct dependencies" means (#11013)
[{'old_path': 'src/Composer/Command/ShowCommand.php', 'new_path': 'src/Composer/Command/ShowCommand.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -601,14 +601,14 @@ protected function execute(InputInterface $input, OutputInterface $output)\n }\n \n $io->write('');\n- ...
PHP
ceec6ff8e2a2cdf5becf5eab25a3d379181c9115
293
2022-08-20 12:23:00+02:00
-7,200
['afeaabe089edbf257b43d43165a4294793bc4324']
Documentation code syntax highlighting (#11011) * Add newline at end of file. * Create a uniformat in the code syntax highlighting by using the main syntax `shell` instead of the alias `bash`/`sh`. * Added (of corrected) the missing code syntax highlighting. * Split the shell commands from the text outputs. ...
[{'old_path': 'doc/00-intro.md', 'new_path': 'doc/00-intro.md', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -76,7 +76,7 @@ running the installer when following\n [the Download page instructions](https://getcomposer.org/download/) add the\n following parameters:\n \n-```sh\n+```shell\n php composer-setup.php --ins...
PHP
cd71cf47b3680a81bb9e280e4fe57dc1adb7b59d
281
2022-08-20 13:13:59+02:00
-7,200
['ceec6ff8e2a2cdf5becf5eab25a3d379181c9115']
Bump main to target 2.5
[{'old_path': 'composer.json', 'new_path': 'composer.json', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -64,7 +64,7 @@\n },\n "extra": {\n "branch-alias": {\n- "dev-main": "2.4-dev"\n+ "dev-main": "2.5-dev"\n },\n "phpstan": {\n "includes": [\n'}, ...
PHP
b6028951b8a2254d4896b4dd13bcbe380a3d51bf
408
2022-08-22 15:00:18+02:00
-7,200
['476fb03fb11c05b40b042d8dbbbd0a4c183430ed']
Tests bootstrap - require InstalledVersions only if it's not declared yet (#11014)
[{'old_path': 'tests/bootstrap.php', 'new_path': 'tests/bootstrap.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -10,6 +10,7 @@\n * file that was distributed with this source code.\n */\n \n+use Composer\\InstalledVersions;\n use Composer\\Util\\Platform;\n \n error_reporting(E_ALL);\n@@ -19,7 +20,11 @@\n }\...
PHP
13421f7d66ae8e824e9b821f2aee75772284cbbb
408
2022-08-30 14:04:30+02:00
-7,200
['a1bc424a064b5eee7324f4fab8580c1038ced48a']
Config - always respect COMPOSER_DISCARD_CHANGES
[{'old_path': 'src/Composer/Config.php', 'new_path': 'src/Composer/Config.php', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -376,7 +376,8 @@ public function get(string $key, int $flags = 0)\n return $value;\n \n case \'discard-changes\':\n- if ($env = $this->getComposerE...
PHP
740de14a397bbbe1f2031584bda3d5c7f1536c4e
482
2022-08-30 14:10:28+02:00
-7,200
['b6028951b8a2254d4896b4dd13bcbe380a3d51bf']
Fix the heading levels for the doc about composer repositories (#11030)
[{'old_path': 'doc/05-repositories.md', 'new_path': 'doc/05-repositories.md', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -149,7 +149,7 @@ number.\n \n This field is optional.\n \n-### metadata-url, available-packages and available-package-patterns\n+#### metadata-url, available-packages and available-package-pat...
PHP
2d48c7dbb0660c014989319d927af7ca5578193e
281
2022-08-30 20:45:07+02:00
-7,200
['13421f7d66ae8e824e9b821f2aee75772284cbbb']
Fix handling of zero-major versions in outdated --major-only flag, fixes #11032
[{'old_path': 'src/Composer/Command/ShowCommand.php', 'new_path': 'src/Composer/Command/ShowCommand.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -1356,8 +1356,8 @@ private function findLatestPackage(PackageInterface $package, Composer $composer\n }\n \n if ($targetVersion === null) {\n- ...
PHP
3177b2132447a970eb96954df13e45ba57448922
281
2022-08-31 09:47:59+02:00
-7,200
['2d48c7dbb0660c014989319d927af7ca5578193e']
Fix handling for double-zero prefix, refs #11032
[{'old_path': 'src/Composer/Command/ShowCommand.php', 'new_path': 'src/Composer/Command/ShowCommand.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -1356,7 +1356,7 @@ private function findLatestPackage(PackageInterface $package, Composer $composer\n }\n \n if ($targetVersion === null) {\n- ...
PHP
9306eebf0c02695b32c85ae0bf0c7ed1e9cb5641
86
2022-08-31 10:43:54+02:00
25,200
['3177b2132447a970eb96954df13e45ba57448922']
Update gitlab fetch failure message with new path (#11038) `https://gitlab.com/-/profile/personal_access_token` is not correct, the current URL for personal access token settings is `https://gitlab.com/-/profile/personal_access_tokens`. This is the only occurrence of the bad URL, we use the proper URL elsewhere.
[{'old_path': 'src/Composer/Util/GitLab.php', 'new_path': 'src/Composer/Util/GitLab.php', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -127,7 +127,7 @@ public function authorizeOAuthInteractively(string $scheme, string $originUrl, ?\n \n $this->io->writeError(sprintf(\'A token will be created and stored in...
PHP
39de9899a70d8351db134027dc24ed35fc629346
281
2022-08-31 12:07:23+02:00
-10,800
['c5932d810f8ffefbde7e940b4c0cf76a663991db']
Lock down include wrappers to avoid abuse from third parties (#11015)
[{'old_path': 'src/Composer/Autoload/AutoloadGenerator.php', 'new_path': 'src/Composer/Autoload/AutoloadGenerator.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -1007,9 +1007,16 @@ public static function getLoader()\n \n if ($useIncludeFiles) {\n $file .= <<<INCLUDE_FILES\n- \\$inclu...
PHP
554914923d265dee5c7d7b664fe6ec4bce58a568
408
2022-08-31 12:39:43+02:00
-7,200
['5b754c797ea1a3bdf22bbace0272ebae4b2f926e']
Tests bootstrap - require InstalledVersions only if it's not declared yet (#11014)
[{'old_path': 'tests/bootstrap.php', 'new_path': 'tests/bootstrap.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -10,6 +10,7 @@\n * file that was distributed with this source code.\n */\n \n+use Composer\\InstalledVersions;\n use Composer\\Util\\Platform;\n \n error_reporting(E_ALL);\n@@ -19,7 +20,11 @@\n }\...
PHP
d951c48ac0a9c962ae2b765e251ac4c54c654589
408
2022-08-31 12:42:26+02:00
-7,200
['c10854d3f32343b37ae9be926dba421b26423a68']
Tests bootstrap - require InstalledVersions only if it's not declared yet (#11014)
[{'old_path': 'tests/bootstrap.php', 'new_path': 'tests/bootstrap.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -10,6 +10,7 @@\n * file that was distributed with this source code.\n */\n \n+use Composer\\InstalledVersions;\n use Composer\\Util\\Platform;\n \n error_reporting(E_ALL);\n@@ -19,7 +20,11 @@\n }\...
PHP
4164b302367ca890066dd4a67c032b129704972a
281
2022-09-13 14:49:25+02:00
-7,200
['9bb436ec28cf09b133cb17604feeedbf1fc914ff']
Fix show --platform regression failing if no composer.json exists, fixes #11046
[{'old_path': 'src/Composer/Command/ShowCommand.php', 'new_path': 'src/Composer/Command/ShowCommand.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -677,7 +677,12 @@ private function printPackages(IOInterface $io, array $packages, string $indent,\n */\n protected function getRootRequires(): array\n ...
PHP
ab29ed5f975a55b99c43b503cbb961649671fecc
281
2022-09-13 14:50:27+02:00
-7,200
['4164b302367ca890066dd4a67c032b129704972a']
Fix handling of upper-bound platform req ignores to not act on conflicts (#11037) * Fix handling of upper-bound platform req ignores to not act on conflicts, fixes #11020 * Optimization
[{'old_path': 'src/Composer/DependencyResolver/RuleSetGenerator.php', 'new_path': 'src/Composer/DependencyResolver/RuleSetGenerator.php', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -223,7 +223,7 @@ protected function addConflictRules(PlatformRequirementFilterInterface $platform\n if ($platformReq...
PHP
d2f37b5680858435fc292e2a0502deb4a33c2d06
281
2022-09-13 15:08:37+02:00
-7,200
['ab29ed5f975a55b99c43b503cbb961649671fecc']
Add hint as to why a package is suggested to be added to require-dev, fixes #11040
[{'old_path': 'src/Composer/Command/RequireCommand.php', 'new_path': 'src/Composer/Command/RequireCommand.php', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -233,19 +233,26 @@ protected function execute(InputInterface $input, OutputInterface $output)\n }\n \n $pkg = PackageSorter::g...
PHP
e94eff5412259de6cbc35b904ef07c120f4cafa6
522
2022-09-13 15:09:28+02:00
-7,200
['d2f37b5680858435fc292e2a0502deb4a33c2d06']
Fix typo in remove command
[{'old_path': 'src/Composer/Command/RemoveCommand.php', 'new_path': 'src/Composer/Command/RemoveCommand.php', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -53,7 +53,7 @@ protected function configure()\n new InputOption(\'no-audit\', null, InputOption::VALUE_NONE, \'Skip the audit step after updatin...
PHP
fb3cae444818e0efaa9a9cdafbfca921ab90fa1d
281
2022-09-13 16:12:28+02:00
-7,200
['e94eff5412259de6cbc35b904ef07c120f4cafa6']
Fix type error in validating array loader when name is not set
[{'old_path': 'src/Composer/Package/Loader/ValidatingArrayLoader.php', 'new_path': 'src/Composer/Package/Loader/ValidatingArrayLoader.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -65,7 +65,7 @@ public function load(array $config, string $class = 'Composer\\Package\\CompletePa\n $this->config = $confi...
PHP
21045b942e81177c6d84c14f00e252cecb433564
281
2022-09-14 10:50:52+02:00
-7,200
['d63218c5686a28a06f3ad21db088b23bb6a95897']
Fix type errors and update baseline (1854, 99)
[{'old_path': 'phpstan/baseline.neon', 'new_path': 'phpstan/baseline.neon', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -3062,7 +3062,7 @@ parameters:\n \n \t\t-\n \t\t\tmessage: "#^Construct empty\\\\(\\\\) is not allowed\\\\. Use more strict comparison\\\\.$#"\n-\t\t\tcount: 19\n+\t\t\tcount: 8\n \t\t\tpath: .....
PHP
f1df7de727945817541196c58928a8597aea6d51
292
2022-09-14 12:51:36+02:00
25,200
['29d8eaf45dcc5b2d8a3ceb9b137e6ab4cef6ffae']
Replace deprecated `PSR-2` with `PSR-12` (#11058) At the top of https://www.php-fig.org/psr/psr-2/, it says: > Deprecated - As of 2019-08-10 PSR-2 has been marked as deprecated. PSR-12 is now recommended as an alternative. Looking at the PSR-12 docs, the summary of changes implies that they mostly took PSR-2 and e...
[{'old_path': 'doc/08-community.md', 'new_path': 'doc/08-community.md', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -19,7 +19,7 @@ The most important guidelines are described as follows:\n > Fork the project, create a feature branch, and send us a pull request.\n >\n > To ensure a consistent code base, you should...
PHP
564f8bec2494e4f5a9ae1fbea0de6bdd89d7de77
281
2022-09-14 13:23:17+02:00
-7,200
['21045b942e81177c6d84c14f00e252cecb433564']
Fix type error, fixes #11052
[{'old_path': 'src/Composer/Downloader/ArchiveDownloader.php', 'new_path': 'src/Composer/Downloader/ArchiveDownloader.php', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -93,7 +93,10 @@ public function install(PackageInterface $package, string $path, bool $output =\n $filesystem->removeDirectory($pa...
PHP
ec8bbe905670295af84f7f04810cde667bac0afa
281
2022-09-14 14:00:27+02:00
-7,200
['564f8bec2494e4f5a9ae1fbea0de6bdd89d7de77']
Fix package filter on bump command, fixes #11053
[{'old_path': 'src/Composer/Command/BumpCommand.php', 'new_path': 'src/Composer/Command/BumpCommand.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -13,8 +13,10 @@\n namespace Composer\\Command;\n \n use Composer\\Package\\AliasPackage;\n+use Composer\\Package\\BasePackage;\n use Composer\\Package\\Locker;\n us...
PHP
a75fbf0e6a705addc8421d253807be0208588b12
281
2022-09-14 15:42:10+02:00
-7,200
['d6411ffae8f7ad21ead9080cbb9d52bc04c85d72']
Fix handling of plugin activation when running as root When running without `COMPOSER_ALLOW_SUPERUSER` set so it always happens after prompting, or does not happen if input is non-interactive. Also fixed support for bash completions hanging when running as root Fixes #11024
[{'old_path': 'CHANGELOG.md', 'new_path': 'CHANGELOG.md', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -1,5 +1,7 @@\n ### [2.4.2] 2022-09-14\n \n+ * Fixed bash completion hanging when running as root without `COMPOSER_ALLOW_SUPERUSER` set (#11024)\n+ * Fixed handling of plugin activation when running as root wit...
PHP
de067ff0e86e55424a5ea5a0abcabe3cfc8e8f19
345
2022-09-16 12:33:15+02:00
-7,200
['8913d7cac667e0b7ba801e8ca04286bb7918c2a4']
remove unused variable in ValidatingArrayLoader (#11063)
[{'old_path': 'src/Composer/Package/Loader/ValidatingArrayLoader.php', 'new_path': 'src/Composer/Package/Loader/ValidatingArrayLoader.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -246,7 +246,6 @@ public function load(array $config, string $class = 'Composer\\Package\\CompletePa\n }\n \n $unbo...
PHP
22bedfd8d8b1fa0952515bb9cecd76795cfce12a
281
2022-09-16 12:48:10+02:00
-7,200
['de067ff0e86e55424a5ea5a0abcabe3cfc8e8f19']
Add autoconfiguration of gitlab-domains/github-domains when auth is present for custom domains, fixes #11062
[{'old_path': 'src/Composer/Command/ConfigCommand.php', 'new_path': 'src/Composer/Command/ConfigCommand.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -237,6 +237,8 @@ protected function execute(InputInterface $input, OutputInterface $output): int\n $this->config->merge(['config' => $this->authConf...
PHP
e870206c4adc9c7f3c9ede156e9d07d322adffb3
522
2022-09-19 08:45:49+02:00
-7,200
['22bedfd8d8b1fa0952515bb9cecd76795cfce12a']
Add "--dry-run" to bump command (#11047)
[{'old_path': 'doc/03-cli.md', 'new_path': 'doc/03-cli.md', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -355,6 +355,7 @@ are local to the library and do not affect consumers of the package.\n \n * **--dev-only:** Only bump requirements in "require-dev".\n * **--no-dev-only:** Only bump requirements in "require".\...
PHP
436a112651a83045bca8c396ee219b83dc7f2122
281
2022-10-11 13:34:45+02:00
-7,200
['aeaf12561b5ee2518ac710fcaaa9e64e7d8e3f86']
Clarify temporary constraint usages and throw if an unresolvable constraint is provided
[{'old_path': 'doc/03-cli.md', 'new_path': 'doc/03-cli.md', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -176,8 +176,9 @@ you can skip `--with` and instead use constraints with the partial update syntax\n php composer.phar update vendor/package:2.0.1 vendor/package2:3.0.*\n ```\n \n-The custom constraint has to be...
PHP
86008940036738138e5770a59abfc9db7fee4884
281
2022-10-12 09:19:36+02:00
-7,200
['436a112651a83045bca8c396ee219b83dc7f2122']
Update deps, constrain a few types to non-empty-strings
[{'old_path': 'composer.lock', 'new_path': 'composer.lock', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -941,16 +941,16 @@\n },\n {\n "name": "symfony/console",\n- "version": "v5.4.12",\n+ "version": "v5.4.13",\n "source": {\n "type": "...
PHP
69d316d1e61f8ea1cde6b4e503468242747359a7
281
2022-10-12 09:19:36+02:00
-7,200
['86008940036738138e5770a59abfc9db7fee4884']
Update baseline (1838, 95)
[{'old_path': 'phpstan/baseline-8.1.neon', 'new_path': 'phpstan/baseline-8.1.neon', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -185,16 +185,6 @@ parameters:\n \t\t\tcount: 1\n \t\t\tpath: ../src/Composer/Util/Http/CurlDownloader.php\n \n-\t\t-\n-\t\t\tmessage: "#^Parameter \\\\#1 \\\\$handle of function curl_clo...
PHP
f8435b6d10ac0bca6d23b3884ab2714b4f86c976
522
2022-10-12 10:55:57+02:00
-7,200
['5770fb027c3af5b29f1542bde0407c37961ee950']
Unify command names in the docs (#11071)
[{'old_path': 'doc/03-cli.md', 'new_path': 'doc/03-cli.md', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -134,7 +134,7 @@ resolution.\n requires `php: ^7`, then the option `--ignore-platform-req=php+` would allow installing on PHP 8,\n but installation on PHP 5.6 would still fail.\n \n-## update / u\n+## updat...
PHP
b2ebe841e48d66512e72ec5dd6d50de8f91d153f
281
2022-10-12 11:03:52+02:00
-7,200
['69d316d1e61f8ea1cde6b4e503468242747359a7']
Fixes plugin commands not being loaded during completion Closes #11074 Co-authored-by: Susanne Moog <look@susi.dev>
[{'old_path': 'src/Composer/Console/Application.php', 'new_path': 'src/Composer/Console/Application.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -235,6 +235,9 @@ public function doRun(InputInterface $input, OutputInterface $output): int\n false === $commandName\n // list comma...
PHP
8ed7c4617907e9ddd2a56631800c82a382e8d7dd
81
2022-10-12 13:56:35+02:00
-7,200
['7df744531bfa82fa76b56b7ec154b755f808ef53']
Add download-only mode (#11041) composer install --download-only to prime the cache/download archives but not do any actual of the actual installing Fixes #11035 Co-authored-by: Jordi Boggiano <j.boggiano@seld.be>
[{'old_path': 'doc/03-cli.md', 'new_path': 'doc/03-cli.md', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -107,6 +107,7 @@ resolution.\n * **--dry-run:** If you want to run through an installation without actually\n installing a package, you can use `--dry-run`. This will simulate the\n installation and show yo...
PHP
822fd640d0fdd611e3b0efb93501a94098a741fa
281
2022-10-12 13:57:14+02:00
-7,200
['8ed7c4617907e9ddd2a56631800c82a382e8d7dd']
Add warning when outdated command rejects an existing version due to platform requirements, fixes #11016 (#11113)
[{'old_path': 'src/Composer/Command/ShowCommand.php', 'new_path': 'src/Composer/Command/ShowCommand.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -1379,7 +1379,17 @@ private function findLatestPackage(PackageInterface $package, Composer $composer\n }\n }\n \n- $candidate = $versionS...
PHP
05aecfbe8b2ebb04d7462d2203f7b0e912119f68
34
2022-10-12 14:22:28+02:00
-3,600
['822fd640d0fdd611e3b0efb93501a94098a741fa']
Test for About command (#11078)
[{'old_path': None, 'new_path': 'tests/Composer/Test/Command/AboutCommandTest.php', 'type': <ModificationType.ADD: 1>, 'diff': '@@ -0,0 +1,21 @@\n+<?php\n+\n+namespace Composer\\Test\\Command;\n+\n+use Composer\\Composer;\n+use Composer\\Test\\TestCase;\n+\n+class AboutCommandTest extends TestCase\n+{\n+\n+ public f...
PHP
d06796efcfc6b3273543d402b6d0e2ff131f4347
281
2022-10-12 15:31:59+02:00
-7,200
['5f0aa0142822bbaa8b40653b35ad0117452fc265']
Warn if why-not is used with a version which does not exist/is not found, fixes #11070
[{'old_path': 'src/Composer/Command/BaseDependencyCommand.php', 'new_path': 'src/Composer/Command/BaseDependencyCommand.php', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -94,6 +94,9 @@ protected function doExecute(InputInterface $input, OutputInterface $output, boo\n 2,\n $input->hasArgume...
PHP
8618f004f791144dc33a196a5e5346ab56f77f7b
281
2022-10-12 16:16:31+02:00
-7,200
['d06796efcfc6b3273543d402b6d0e2ff131f4347']
Fix parsing of aliases used within complex OR constraints, fixes #11086
[{'old_path': 'src/Composer/Package/Loader/RootPackageLoader.php', 'new_path': 'src/Composer/Package/Loader/RootPackageLoader.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -193,7 +193,7 @@ public function load(array $config, string $class = 'Composer\\Package\\RootPackag\n private function extractAliases(...
PHP
08c04d2c9c91eed58f72fd276782fa198f3f4212
392
2022-10-12 16:45:10+02:00
21,600
['05aecfbe8b2ebb04d7462d2203f7b0e912119f68']
Typofixes (#11096) * Fixing typo in private method name * Various comment-related typofixes
[{'old_path': 'src/Composer/Advisory/Auditor.php', 'new_path': 'src/Composer/Advisory/Auditor.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -98,7 +98,7 @@ private function outputAdvisories(IOInterface $io, array $advisories, string $fo\n if (!($io instanceof ConsoleIO)) {\n ...
PHP
2c1b309cd3925c3bd7c400663c905655e9698767
281
2022-10-12 16:57:06+02:00
-7,200
['06359da3a3299a087bd6c9fa70e4107c481f53dd']
Add hard failure if COMPOSER_AUTH is malformed json, fixes #11085
[{'old_path': 'src/Composer/Factory.php', 'new_path': 'src/Composer/Factory.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -219,9 +219,7 @@ public static function createConfig(?IOInterface $io = null, ?string $cwd = null\n if ($composerAuthEnv = Platform::getEnv('COMPOSER_AUTH')) {\n $authD...
PHP
632f63a9a34c6b676e8f383591e1b9d126a74412
63
2022-10-12 17:02:26+02:00
-7,200
['2c1b309cd3925c3bd7c400663c905655e9698767']
Fix typo in "WordPress" (#11082)
[{'old_path': 'doc/05-repositories.md', 'new_path': 'doc/05-repositories.md', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -591,7 +591,7 @@ time, there are some use cases for hosting your own repository.\n * **Separate ecosystem:** If you have a project which has its own ecosystem,\n and the packages aren't real...
PHP
d8a0127c0c5ee913418c7f7764e78668584959d6
352
2022-10-12 17:19:58+02:00
10,800
['632f63a9a34c6b676e8f383591e1b9d126a74412']
Added tests for Clear Cache Command. (#11066) * Added tests for Clear Cache Command. * Fix side-effects breaking other tests Co-authored-by: Jordi Boggiano <j.boggiano@seld.be>
[{'old_path': None, 'new_path': 'tests/Composer/Test/Command/ClearCacheCommandTest.php', 'type': <ModificationType.ADD: 1>, 'diff': "@@ -0,0 +1,61 @@\n+<?php declare(strict_types=1);\n+\n+/*\n+ * This file is part of Composer.\n+ *\n+ * (c) Nils Adermann <naderman@naderman.de>\n+ * Jordi Boggiano <j.boggiano@seld.b...
PHP
c728569d33b13458a4ee61288999e80732328c94
297
2022-10-12 17:25:28+02:00
-7,200
['d8a0127c0c5ee913418c7f7764e78668584959d6']
Added new `LicensesCommandTest` class (#11105)
[{'old_path': None, 'new_path': 'tests/Composer/Test/Command/LicensesCommandTest.php', 'type': <ModificationType.ADD: 1>, 'diff': '@@ -0,0 +1,183 @@\n+<?php declare(strict_types=1);\n+\n+/*\n+ * This file is part of Composer.\n+ *\n+ * (c) Nils Adermann <naderman@naderman.de>\n+ * Jordi Boggiano <j.boggiano@seld.be...
PHP
d1bf685ea867e9d166ff416f62015e8bc5fd3b4e
297
2022-10-13 10:39:51+02:00
-7,200
['c728569d33b13458a4ee61288999e80732328c94']
Added lots of new tests for `InitCommand` (#11106) This commit adds tests for all the different input options.
[{'old_path': 'tests/Composer/Test/Command/InitCommandTest.php', 'new_path': 'tests/Composer/Test/Command/InitCommandTest.php', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -13,7 +13,9 @@\n namespace Composer\\Test\\Command;\n \n use Composer\\Command\\InitCommand;\n+use Composer\\Json\\JsonFile;\n use Composer\\T...
PHP
b52e6b4a74a8e24812355f1a63c0f90b960703b1
297
2022-10-13 10:42:03+02:00
-7,200
['d1bf685ea867e9d166ff416f62015e8bc5fd3b4e']
Add tests for BumpCommand (#11097) I've added tests for the BumpCommand to increase the test coverage. See #10796 Signed-off-by: Jesper Skytte <jesper@skytte.it> Signed-off-by: Jesper Skytte <jesper@skytte.it>
[{'old_path': 'tests/Composer/Test/Command/BumpCommandTest.php', 'new_path': 'tests/Composer/Test/Command/BumpCommandTest.php', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -47,6 +47,30 @@ public function testBump(array $composerJson, array $command, array $expected, b\n $this->assertSame($expected, $json-...
PHP
52f91b2dd966a5648378eb24bb3b4ba756e791f4
233
2022-10-13 10:53:26+02:00
-7,200
['b52e6b4a74a8e24812355f1a63c0f90b960703b1']
Add test and documentation regarding audit command when no packages are required (#11092)
[{'old_path': 'doc/03-cli.md', 'new_path': 'doc/03-cli.md', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -1043,6 +1043,8 @@ for possible security issues. It checks for and\n lists security vulnerability advisories according to the\n [Packagist.org api](https://packagist.org/apidoc#list-security-advisories).\n \n+T...
PHP
c9b1a2e70b0284f4ed2a11e2d79a762b70e61df8
281
2022-10-13 10:55:39+02:00
-7,200
['8618f004f791144dc33a196a5e5346ab56f77f7b']
Remove useless parsing of constraint from package name
[{'old_path': 'src/Composer/Command/BaseDependencyCommand.php', 'new_path': 'src/Composer/Command/BaseDependencyCommand.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -89,14 +89,8 @@ protected function doExecute(InputInterface $input, OutputInterface $output, boo\n $installedRepo = new InstalledReposit...
PHP
c447c12a70da9f4ad7bf26b3442d00a533c5ce29
281
2022-10-13 11:07:13+02:00
-7,200
['c9b1a2e70b0284f4ed2a11e2d79a762b70e61df8']
Fix min-php version check to avoid crashing sites with a 200, fixes #11091
[{'old_path': 'src/Composer/Autoload/AutoloadGenerator.php', 'new_path': 'src/Composer/Autoload/AutoloadGenerator.php', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -888,8 +888,21 @@ protected function getAutoloadFile(string $vendorPathToTargetDirCode, string $su\n // autoload.php @generated by Composer\n \n if (P...
PHP
13e673df76cca54ab75dd94923948d7b8a57e0cc
323
2022-10-13 11:21:19+02:00
-7,200
['52f91b2dd966a5648378eb24bb3b4ba756e791f4']
#10796 Add test for ExecCommand (#11094)
[{'old_path': None, 'new_path': 'tests/Composer/Test/Command/ExecCommandTest.php', 'type': <ModificationType.ADD: 1>, 'diff': '@@ -0,0 +1,60 @@\n+<?php declare(strict_types=1);\n+\n+/*\n+ * This file is part of Composer.\n+ *\n+ * (c) Nils Adermann <naderman@naderman.de>\n+ * Jordi Boggiano <j.boggiano@seld.be>\n+ ...
PHP
80907cd75d039509c5edfbe8ef6a05f4de7a3d98
281
2022-10-13 14:07:09+02:00
-7,200
['205ba378255a686e7f0739bd02c06f5f6cf691c8']
Ensure files are readable before reading in JsonFile, fixes #11077
[{'old_path': 'src/Composer/Json/JsonFile.php', 'new_path': 'src/Composer/Json/JsonFile.php', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -93,6 +93,9 @@ public function read()\n if ($this->httpDownloader) {\n $json = $this->httpDownloader->get($this->path)->getBody();\n } e...
PHP
8e4dffc0555e839fb33bfcdf8868ab473fe0cd27
431
2022-10-13 14:10:27+02:00
-7,200
['ce082cd5b3706f1b4e611928309700e1fdb41855']
Allow other CLIs (like satis in standalone mode) to re-brand composer. (#11118) This affects the banner at the head of the help screen and the version info. Symfony's base object offers the same signature but composer does not allow to override it in constructor. Yet there are public setter methods to change both a...
[{'old_path': 'src/Composer/Console/Application.php', 'new_path': 'src/Composer/Console/Application.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -84,10 +84,12 @@ class Application extends BaseApplication\n /** @var SignalHandler */\n private $signalHandler;\n \n- public function __construct()\n+ ...
PHP
1c669428da698ace7657207088bbbbc906a9e4ff
212
2022-10-13 15:57:19+02:00
-7,200
['8e4dffc0555e839fb33bfcdf8868ab473fe0cd27']
Update link text to runtime page in documentation (#11115)
[{'old_path': 'doc/08-community.md', 'new_path': 'doc/08-community.md', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -33,4 +33,4 @@ For paid support, we do provide Composer-related support via chat and email to\n [Private Packagist](https://packagist.com) customers.\n \n \n-&larr; [Config](07-runtime.md)\n+&larr; ...
PHP
acddc1f5e4fa394bcea7dacba3b9200e6cb6a823
281
2022-10-13 16:29:08+02:00
-7,200
['7e679f3da35956fd71e79895f4dd772aa10e9388']
Fix require failing to do a dry-run when requiring a package with a stability flag, fixes #11112
[{'old_path': 'src/Composer/Command/RequireCommand.php', 'new_path': 'src/Composer/Command/RequireCommand.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -14,6 +14,7 @@\n \n use Composer\\DependencyResolver\\Request;\n use Composer\\Package\\CompletePackageInterface;\n+use Composer\\Package\\Loader\\RootPackage...
PHP
bc93f734bc0b417d132d8d0d6a24cd3cd58264aa
281
2022-10-13 16:40:44+02:00
-7,200
['acddc1f5e4fa394bcea7dacba3b9200e6cb6a823']
Add an error msg to clearly explain that plugins are disabled when running as root non-interactively, fixes #11093
[{'old_path': 'src/Composer/Console/Application.php', 'new_path': 'src/Composer/Console/Application.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -286,6 +286,7 @@ public function doRun(InputInterface $input, OutputInterface $output): int\n }\n \n if ($isNonAllowedRoot && !$io->isInteractive())...
PHP
4faa8c03ce5a9f8482d352d90be4383bc21da5c3
281
2022-10-13 16:53:33+02:00
-7,200
['bc93f734bc0b417d132d8d0d6a24cd3cd58264aa']
Update docs about root usage, refs #11093
[{'old_path': 'doc/faqs/how-to-install-untrusted-packages-safely.md', 'new_path': 'doc/faqs/how-to-install-untrusted-packages-safely.md', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -1,5 +1,21 @@\n # How do I install untrusted packages safely? Is it safe to run Composer as superuser or root?\n \n+## Why am I seei...
PHP
f6e67e584ebda410b96c34de7dde0427dffa6136
281
2022-10-13 16:56:21+02:00
-7,200
['4faa8c03ce5a9f8482d352d90be4383bc21da5c3']
Fix json format of audit command missing affectedVersions, fix reportedAt format (BC BREAK!), fixes #11104 (#11120)
[{'old_path': 'src/Composer/Advisory/PartialSecurityAdvisory.php', 'new_path': 'src/Composer/Advisory/PartialSecurityAdvisory.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -14,8 +14,9 @@\n \n use Composer\\Semver\\Constraint\\ConstraintInterface;\n use Composer\\Semver\\VersionParser;\n+use JsonSerializable;\...
PHP
e746f71e95ffb8de0dc4e3c677ba53baf699989b
55
2022-10-25 11:54:48+02:00
-7,200
['89ad120f2a2c6a4ec84ef64b1e5c4b54f3f821a0']
GH Actions: fix use of deprecated `set-output` (#11126) GitHub has deprecated the use of `set-output` (and `set-state`) in favour of new environment files. This commit updates workflows to use the new methodology. Refs: * https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-out...
[{'old_path': '.github/workflows/phpstan.yml', 'new_path': '.github/workflows/phpstan.yml', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -45,7 +45,7 @@ jobs:\n \n - name: "Determine composer cache directory"\n id: "determine-composer-cache-directory"\n- run: "echo \\"::set-output name=director...
PHP
86db6ffdae569a94539fa547ccb8dac93002bcd8
281
2022-10-25 14:44:26+02:00
-7,200
['e746f71e95ffb8de0dc4e3c677ba53baf699989b']
Retry cache writes if they fail, refs #11076
[{'old_path': 'src/Composer/Cache.php', 'new_path': 'src/Composer/Cache.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -137,6 +137,8 @@ public function read(string $file)\n */\n public function write(string $file, string $contents)\n {\n+ $wasEnabled = $this->enabled === true;\n+\n ...
PHP
8d3a3042339cff6b62280c4bfdb5bc3dd6294979
281
2022-10-25 14:44:28+02:00
-7,200
['86db6ffdae569a94539fa547ccb8dac93002bcd8']
Fix outdated command outputting some of the legend to stdout
[{'old_path': 'src/Composer/Command/ShowCommand.php', 'new_path': 'src/Composer/Command/ShowCommand.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -600,19 +600,19 @@ protected function execute(InputInterface $input, OutputInterface $output)\n }\n }\n \n- ...
PHP
e5b8f2d838a71ea6f3e98245de4c93539b66bc76
522
2022-10-25 15:03:36+02:00
-7,200
['8d3a3042339cff6b62280c4bfdb5bc3dd6294979']
Add "--dry-run" to bump command (#11047)
[{'old_path': 'doc/03-cli.md', 'new_path': 'doc/03-cli.md', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -356,6 +356,7 @@ are local to the library and do not affect consumers of the package.\n \n * **--dev-only:** Only bump requirements in "require-dev".\n * **--no-dev-only:** Only bump requirements in "require".\...
PHP
803e4e5dbda1c84c0937c87993848e078680343e
281
2022-10-25 15:04:08+02:00
-7,200
['e5b8f2d838a71ea6f3e98245de4c93539b66bc76']
Catch runtime exception while initializing Composer to make sure a missing composer.json does not fail >tryComposer, refs #11133
[{'old_path': 'src/Composer/Console/Application.php', 'new_path': 'src/Composer/Console/Application.php', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -17,6 +17,7 @@\n use Composer\\Util\\Platform;\n use Composer\\Util\\Silencer;\n use LogicException;\n+use RuntimeException;\n use Seld\\Signal\\SignalHandler;\n us...
PHP
855473148af3e8e7eabcad659644f0c99267ef76
281
2022-10-25 15:05:35+02:00
-7,200
['803e4e5dbda1c84c0937c87993848e078680343e']
Fix regression in loading Composer on SMB/network shares, refs #8231 #11077
[{'old_path': 'src/Composer/Json/JsonFile.php', 'new_path': 'src/Composer/Json/JsonFile.php', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -13,6 +13,7 @@\n namespace Composer\\Json;\n \n use Composer\\Pcre\\Preg;\n+use Composer\\Util\\Filesystem;\n use JsonSchema\\Validator;\n use Seld\\JsonLint\\JsonParser;\n use...
PHP
90673e4f66fed79ec4d9ccf0247333b01dc3b444
143
2022-10-25 15:07:24+02:00
-19,800
['855473148af3e8e7eabcad659644f0c99267ef76']
Update URL masking patterns for new GitHub fine-grained PATs Updates GitHub Personal Access Token regex pattern to detect new [fine-grained PATs](https://github.blog/changelog/2022-10-18-introducing-fine-grained-personal-access-tokens/)
[{'old_path': 'src/Composer/Util/Url.php', 'new_path': 'src/Composer/Util/Url.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -111,7 +111,7 @@ public static function sanitize(string $url): string\n \n $url = Preg::replaceCallback('{^(?P<prefix>[a-z0-9]+://)?(?P<user>[^:/\\s@]+):(?P<password>[^@\\s/]+)@}...
PHP
feb76ae67d7ddbfda01d0748444b94d240b4e298
430
2022-10-25 15:14:13+02:00
25,200
['9ac186bf46b0a7ae015fbcd725c088be4905f2f6']
Adding logo to README (#11147)
[{'old_path': 'README.md', 'new_path': 'README.md', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -1,5 +1,9 @@\n-Composer - Dependency Management for PHP\n-========================================\n+<p align="center">\n+ <a href="https://getcomposer.org">\n+ <img src="https://getcomposer.org/img/logo-comp...
PHP
d54f2f21c5e6c2fb094d012bed547f7c825d3ab7
26
2022-10-25 16:24:02+02:00
-7,200
['8ffd8bef0812057bb0857fc0c79bd438f5e94380']
Feature: Add support for autocompleting setting-keys in config-command (#11130) * Add support for autocompleting setting-keys in config-command This PR implements the support for autocompletion of setting-keys in the config-command and its related funtional tests. The implementation takes existing command-line op...
[{'old_path': 'composer.json', 'new_path': 'composer.json', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -41,6 +41,7 @@\n "composer/pcre": "^2 || ^3",\n "symfony/polyfill-php73": "^1.24",\n "symfony/polyfill-php80": "^1.24",\n+ "symfony/polyfill-php81": "^1.24",\n "seld/signa...
PHP
1b3a2ed6f62908952da14d96d163cdfe481f6b8d
64
2022-10-25 16:38:01+02:00
-7,200
['d54f2f21c5e6c2fb094d012bed547f7c825d3ab7']
test: Coverage for ValidateCommand (#11133) Co-authored-by: giulio-Joshi <me@joshi.it> Co-authored-by: Jordi Boggiano <j.boggiano@seld.be>
[{'old_path': None, 'new_path': 'tests/Composer/Test/Command/ValidateCommandTest.php', 'type': <ModificationType.ADD: 1>, 'diff': '@@ -0,0 +1,150 @@\n+<?php declare(strict_types=1);\n+\n+/*\n+ * This file is part of Composer.\n+ *\n+ * (c) Nils Adermann <naderman@naderman.de>\n+ * Jordi Boggiano <j.boggiano@seld.be...
PHP
b5b4e15876210b3bd1f1ab430a01ac99e301fb7d
31
2022-10-25 19:42:42+02:00
-3,600
['1b3a2ed6f62908952da14d96d163cdfe481f6b8d']
test: Create test for CheckPlatformReqsCommand (#10932)
[{'old_path': None, 'new_path': 'tests/Composer/Test/Command/CheckPlatformReqsCommandTest.php', 'type': <ModificationType.ADD: 1>, 'diff': '@@ -0,0 +1,93 @@\n+<?php declare(strict_types=1);\n+\n+/*\n+ * This file is part of Composer.\n+ *\n+ * (c) Nils Adermann <naderman@naderman.de>\n+ * Jordi Boggiano <j.boggiano...
PHP