Search is not available for this dataset
hash
string
author
int32
committer_date
string
timezone
int64
parents
string
message
string
changes
string
language
string
9588654ae3881f7f2270e7dd464568dc7d82b379
307
2021-08-11 22:21:57+02:00
-7,200
['c65bd832d6529a542ad5f74d0e49d3353f8632c8']
ClassMapGenerator: add tests for "long heredoc" bug ... to proof the existence of the bug and demonstrate the effect. Note: in the test the backtrack limit is being lowered (and restored back to the default afterwards) to prevent the tests needing ridiculously huge test fixture files.
[{'old_path': 'tests/Composer/Test/Autoload/ClassMapGeneratorTest.php', 'new_path': 'tests/Composer/Test/Autoload/ClassMapGeneratorTest.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -244,6 +244,25 @@ public function testDump()\n $fs->removeDirectory($tempDir);\n }\n \n+ public function testCrea...
PHP
e729c418dd6b2151e765cdf9c7bd27583cea3a21
307
2021-08-11 22:23:24+02:00
-7,200
['9588654ae3881f7f2270e7dd464568dc7d82b379']
ClassMapGenerator: add test for "marker in text" bug In PHP < 7.3, the heredoc/nowdoc marker was allowed to occur in the text, as long as it did not occur at the very start of the line. This was also not handled correctly. Ref: https://www.php.net/manual/en/migration73.incompatible.php#migration73.incompatible.core....
[{'old_path': 'tests/Composer/Test/Autoload/Fixtures/classmap/StripNoise.php', 'new_path': 'tests/Composer/Test/Autoload/Fixtures/classmap/StripNoise.php', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -17,7 +17,12 @@ class FailHeredocBasic\n class FailHeredocWhitespace\n {\n }\n-WHITESPACE . <<<"DOUBLEQUOTES"\n+WH...
PHP
42c6a0d7c50c94d79298248f5f8ae51a522f9844
307
2021-08-11 22:26:12+02:00
-7,200
['e729c418dd6b2151e765cdf9c7bd27583cea3a21']
ClassMapGenerator: fix the regex By using a look ahead assertion to match "new line - maybe whitespace - marker", the negative performance impact of the `.*` is significantly mitigated and backtracing will be severely limited. This fixes the bug as reported in 10037. The bug was discovered due to a PHP 8.1 "passing ...
[{'old_path': 'src/Composer/Autoload/ClassMapGenerator.php', 'new_path': 'src/Composer/Autoload/ClassMapGenerator.php', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -246,7 +246,7 @@ private static function findClasses($path)\n }\n \n // strip heredocs/nowdocs\n- $contents = preg_replace(\'{<...
PHP
609007b072f4b05351bab44472938dba06b767b0
307
2021-08-12 02:45:29+02:00
-7,200
['c65bd832d6529a542ad5f74d0e49d3353f8632c8']
PHP 8.1: prevent a "null to non-nullable" deprecation notice Discovered while running the existing unit tests on PHP 8.1. The default state of the protected `$distUrl` property is "not set" and the property may not be set when the `Package::setSourceDistReferences()` method gets called. Fixes a total of 9 deprecatio...
[{'old_path': 'src/Composer/Package/Package.php', 'new_path': 'src/Composer/Package/Package.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -594,7 +594,10 @@ public function setSourceDistReferences($reference)\n \n // only bitbucket, github and gitlab have auto generated dist URLs that easily allow repl...
PHP
7022ceb0a60c5a69a5204d3db9685b161911454d
307
2021-08-12 03:02:19+02:00
-7,200
['c65bd832d6529a542ad5f74d0e49d3353f8632c8']
PHP 8.1: prevent a "null to non-nullable" deprecation notice (test only fix) Not all tests in the `InstallerTest` class actually create a temporary directory and set the `$this->tempComposerHome` property. Those tests which didn't, throw a notice in PHP 8.1. Fixes 3 notices along the lines of: ``` Deprecation trigge...
[{'old_path': 'tests/Composer/Test/InstallerTest.php', 'new_path': 'tests/Composer/Test/InstallerTest.php', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -50,7 +50,7 @@ public function setUp()\n public function tearDown()\n {\n chdir($this->prevCwd);\n- if (is_dir($this->tempComposerHome)) {\...
PHP
7004e0d031a2ca19a104e6c5d911f44255fcda53
307
2021-08-12 03:38:56+02:00
-7,200
['c65bd832d6529a542ad5f74d0e49d3353f8632c8']
PHP 8.1/LibraryInstallerTest: add missing mock expectation The `LibraryInstallerTest::testUninstall()` method mocks a `Package` object, but did not set an expectation for a call to `getName()`, while that method _is_ called in the `LibraryInstaller::uninstall()` method. Without expectation, the mock returns `null`, w...
[{'old_path': 'tests/Composer/Test/Installer/LibraryInstallerTest.php', 'new_path': 'tests/Composer/Test/Installer/LibraryInstallerTest.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -201,6 +201,10 @@ public function testUninstall()\n ->expects($this->any())\n ->method('getPrettyName')\...
PHP
d9a94b376aca3637f1623e78b88b2d113281465c
245
2021-08-17 18:36:08+08:00
-28,800
['4da1a2d43a1259846ce728e9ddf962e2b3649399']
Update the Composer plugin API version to 2.1.0
[{'old_path': 'doc/articles/plugins.md', 'new_path': 'doc/articles/plugins.md', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -39,7 +39,7 @@ requirements:\n The required version of the `composer-plugin-api` follows the same [rules][7]\n as a normal package's.\n \n-The current Composer plugin API version is `2.0.0`....
PHP
e49f24e3550329913f5eb5e92669f403c9484a91
281
2021-08-17 15:58:27+02:00
-7,200
['4da1a2d43a1259846ce728e9ddf962e2b3649399']
Switch phar signatures to sha512
[{'old_path': 'src/Composer/Compiler.php', 'new_path': 'src/Composer/Compiler.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -71,7 +71,7 @@ public function compile($pharFile = 'composer.phar')\n }\n \n $phar = new \\Phar($pharFile, 0, 'composer.phar');\n- $phar->setSignatureAlgorithm(\\P...
PHP
ddd7920d2af3452693ad1f2850736d4bdd0ffa6b
281
2021-08-17 16:49:36+02:00
-7,200
['e49f24e3550329913f5eb5e92669f403c9484a91']
Fix corrupt archives in cache from getting the installs stuck forever, and make sure it fails only once, fixes #10028
[{'old_path': 'src/Composer/Downloader/FileDownloader.php', 'new_path': 'src/Composer/Downloader/FileDownloader.php', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -168,6 +168,12 @@ public function download(PackageInterface $package, $path, PackageInterface $pre\n if ($output) {\n ...
PHP
60fe67086e34c20bcf687ebe202df1eb58556264
281
2021-08-18 10:15:47+02:00
-7,200
['d6f4111f354f24b0c2c63673e10a37d5a3c4b433']
Make sure proc_open is not required for basic installs, refs #9253
[{'old_path': 'src/Composer/Downloader/ZipDownloader.php', 'new_path': 'src/Composer/Downloader/ZipDownloader.php', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -54,6 +54,12 @@ public function download(PackageInterface $package, $path, PackageInterface $pre\n }\n }\n \n+ $procOpenMissing...
PHP
d465df434c6cd96100f242b8223384fb0f6a595c
281
2021-08-18 10:16:20+02:00
-7,200
['60fe67086e34c20bcf687ebe202df1eb58556264']
Make sure diagnose command can run without proc_open, refs #9253
[{'old_path': 'src/Composer/Command/DiagnoseCommand.php', 'new_path': 'src/Composer/Command/DiagnoseCommand.php', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -189,6 +189,7 @@ protected function execute(InputInterface $input, OutputInterface $output)\n \'zip: \' . (extension_loaded(\'zip\') ? \'<commen...
PHP
91a1a471dbb6de6708ede5fbc81c6adca82e3049
281
2021-08-18 11:25:00+02:00
-7,200
['d465df434c6cd96100f242b8223384fb0f6a595c']
Fix path repo bug causing symlinks to be left behind when uninstalling, fixes #10023
[{'old_path': 'src/Composer/Downloader/PathDownloader.php', 'new_path': 'src/Composer/Downloader/PathDownloader.php', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -184,7 +184,14 @@ public function remove(PackageInterface $package, $path, $output = true)\n return \\React\\Promise\\resolve();\n }...
PHP
5c201687e562413508d27353637c78bf4791706c
281
2021-08-18 11:55:51+02:00
-7,200
['b7bb7718fbd8b2e55da51165eef54d0ebf6925a3']
Fix 7zip issues on windows when mixing forward and backslashes, fixes #10058
[{'old_path': 'src/Composer/Downloader/ZipDownloader.php', 'new_path': 'src/Composer/Downloader/ZipDownloader.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -115,6 +115,12 @@ private function extractWithSystemUnzip(PackageInterface $package, $file, $path)\n \n $commandSpec = reset(self::$unzipCommands)...
PHP
8ce0ea300e72e6528670e7cd4e8d2781fe6adae1
281
2021-08-18 14:23:08+02:00
-7,200
['a72784c4da63bb6e0278ca0d3800bd0917788d3e']
Fix pear repo preventing self-update from functioning, fixes #10049
[{'old_path': 'src/Composer/Repository/PearRepository.php', 'new_path': 'src/Composer/Repository/PearRepository.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -27,6 +27,6 @@ class PearRepository extends ArrayRepository\n {\n public function __construct()\n {\n- throw new \\RuntimeException('The ...
PHP
cfe718fa439ed76e7f09ce1b277dec4e9160c673
281
2021-08-18 14:30:09+02:00
-7,200
['b232ee666313dc4462d1fad4779edda23de7b94e']
Fix usage of getRequiredPackage, closes #10052
[{'old_path': 'src/Composer/DependencyResolver/Rule.php', 'new_path': 'src/Composer/DependencyResolver/Rule.php', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -76,6 +76,9 @@ public function getReasonData()\n return $this->reasonData;\n }\n \n+ /**\n+ * @return ?string\n+ */\n public func...
PHP
c5a02a2b58e6de877f4a43c92d4650129bd01fba
281
2021-08-18 14:55:38+02:00
-7,200
['cac4c190f1fb05c37ad48f2ef66f9105feebb52c']
Fix return value of ProcessExecutor::getErrorOutput, closes #10054
[{'old_path': 'src/Composer/Util/ProcessExecutor.php', 'new_path': 'src/Composer/Util/ProcessExecutor.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -33,8 +33,11 @@ class ProcessExecutor\n \n protected static $timeout = 300;\n \n- protected $captureOutput;\n- protected $errorOutput;\n+ /** @var bo...
PHP
20b7e395b469d56cf4eb631914222b0dbcefeb3c
281
2021-08-18 15:13:04+02:00
-7,200
['c5a02a2b58e6de877f4a43c92d4650129bd01fba']
Fail tests when deprecations are triggered in the code, refs #10038
[{'old_path': 'phpunit.xml.dist', 'new_path': 'phpunit.xml.dist', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -15,7 +15,7 @@\n bootstrap="tests/bootstrap.php"\n >\n <php>\n- <env name="SYMFONY_DEPRECATIONS_HELPER" value="weak"/>\n+ <env name="SYMFONY_DEPRECATIONS_HELPER" value="max[dire...
PHP
5062619046c9fdef08e20a5b5ae3ca84230d77c2
281
2021-08-18 15:55:37+02:00
-7,200
['0b09e08f4b870ac21d235a9c8398b7bde1fd68e1']
Fix deprecation warnings with strpos receiving null
[{'old_path': 'tests/Composer/Test/Downloader/GitDownloaderTest.php', 'new_path': 'tests/Composer/Test/Downloader/GitDownloaderTest.php', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -69,7 +69,7 @@ protected function setupConfig($config = null)\n protected function getDownloaderMock($io = null, $config = null,...
PHP
6aa2d15868d42058e7142844536d06b46e5f63b4
281
2021-08-18 17:17:56+02:00
-7,200
['5062619046c9fdef08e20a5b5ae3ca84230d77c2']
Introduce ProcessExecutorMock to fix deprecations and amount of mocking pain
[{'old_path': 'src/Composer/Util/ProcessExecutor.php', 'new_path': 'src/Composer/Util/ProcessExecutor.php', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -371,6 +371,9 @@ public function getErrorOutput()\n return $this->errorOutput;\n }\n \n+ /**\n+ * @private\n+ */\n public function outp...
PHP
b77fce8a4f132b8922a13139b514f5aa50eb1c32
281
2021-08-18 23:35:27+02:00
-7,200
['6aa2d15868d42058e7142844536d06b46e5f63b4']
More deprecation fixes by using ProcessExecutorMock and a couple of PackageInterface type fixes
[{'old_path': 'src/Composer/IO/ConsoleIO.php', 'new_path': 'src/Composer/IO/ConsoleIO.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -36,9 +36,9 @@ class ConsoleIO extends BaseIO\n /** @var HelperSet */\n protected $helperSet;\n /** @var string */\n- protected $lastMessage;\n+ protected $last...
PHP
a586a753df343d934941df0161a9a1621ad7f399
281
2021-08-19 13:00:30+02:00
-7,200
['b77fce8a4f132b8922a13139b514f5aa50eb1c32']
Fix all remaining php8.1 test suite deprecations
[{'old_path': 'src/Composer/Json/JsonValidationException.php', 'new_path': 'src/Composer/Json/JsonValidationException.php', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -24,7 +24,7 @@ class JsonValidationException extends Exception\n public function __construct($message, $errors = array(), Exception $previous ...
PHP
5f48f87501f1714473410f11efbe59228f5a3cf5
55
2021-08-19 13:21:04+02:00
-7,200
['e5a50d1f066728b2d3fa8935eb47f33f0e623a67']
PHPUnit: move environment variable into PHPUnit config file (#10062) Co-authored-by: jrfnl <jrfnl@users.noreply.github.com>
[{'old_path': '.github/CONTRIBUTING.md', 'new_path': '.github/CONTRIBUTING.md', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -42,9 +42,14 @@ To achieve this, you need to acquire the Composer source code:\n 3. Run Composer to get the dependencies: `cd composer && php ../composer.phar install`\n \n You can run the t...
PHP
9727adf63b0a6a7f082d1da572eff42e52e2dab1
281
2021-08-19 14:37:50+02:00
-7,200
['5f48f87501f1714473410f11efbe59228f5a3cf5']
Fix init performance when plugin commands are not needed, fixes #10064
[{'old_path': 'src/Composer/Console/Application.php', 'new_path': 'src/Composer/Console/Application.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -186,7 +186,10 @@ public function doRun(InputInterface $input, OutputInterface $output)\n }\n }\n \n- if (!$this->disablePluginsByDefault...
PHP
74b231a4bc5b20f9674cb5ce5c63171400de40ca
281
2021-08-19 15:00:08+02:00
-7,200
['9727adf63b0a6a7f082d1da572eff42e52e2dab1']
Fix lib-openssl detection on FreeBSD, fixes #10046
[{'old_path': 'src/Composer/Platform/Version.php', 'new_path': 'src/Composer/Platform/Version.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -26,7 +26,7 @@ public static function parseOpenssl($opensslVersion, &$isFips)\n {\n $isFips = false;\n \n- if (!preg_match('/^(?<version>[0-9.]+)(?<pat...
PHP
812cf836f351194d19da2f4229b7333c00364659
362
2021-08-19 15:49:02+02:00
-3,600
['74b231a4bc5b20f9674cb5ce5c63171400de40ca']
Add documentation for v2 repository fields (#10033)
[{'old_path': 'doc/05-repositories.md', 'new_path': 'doc/05-repositories.md', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -149,6 +149,102 @@ number.\n \n This field is optional.\n \n+### metadata-url, available-packages and available-package-patterns\n+\n+The `metadata-url` field allows you to provide a URL templ...
PHP
b583310476763f6826be9ccf16872d525c57dc9b
281
2021-08-19 16:03:59+02:00
-7,200
['17b972f2a9068349a9f72cf45d2c5a518f058b76']
Allow ircs protocol for support.irc
[{'old_path': 'src/Composer/Package/Loader/ValidatingArrayLoader.php', 'new_path': 'src/Composer/Package/Loader/ValidatingArrayLoader.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -179,8 +179,8 @@ public function load(array $config, $class = 'Composer\\Package\\CompletePackage')\n unset($this-...
PHP
de5f18d64ba43aaafc624e9d9ed2a72e6971d882
281
2021-08-19 16:13:45+02:00
-7,200
['b583310476763f6826be9ccf16872d525c57dc9b']
Update IRC URL too in composer.json
[{'old_path': 'composer.json', 'new_path': 'composer.json', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -86,6 +86,6 @@\n },\n "support": {\n "issues": "https://github.com/composer/composer/issues",\n- "irc": "irc://irc.freenode.org/composer"\n+ "irc": "ircs://irc.libera.chat:6697/com...
PHP
d3c176ec696c2aaf98e482fed44edf92e8975c34
281
2021-08-21 17:41:52+02:00
-7,200
['4b8585d767357ee215e40fb79ee20b49b52b38a6']
PHPStan Level 5 (#10070) * Bump PHPStan to level 5 * Update seld/phar-utils to latest * Add phpstan-setup / phpstan scripts
[{'old_path': 'composer.json', 'new_path': 'composer.json', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -78,11 +78,20 @@\n ],\n "scripts": {\n "compile": "@php -dphar.readonly=0 bin/compile",\n- "test": "simple-phpunit"\n+ "test": "simple-phpunit",\n+ "phpstan-setup": [\n+ ...
PHP
b66b23a03f7db6c09c101a7805dbfa896f38b374
307
2021-08-21 17:45:42+02:00
-7,200
['d3c176ec696c2aaf98e482fed44edf92e8975c34']
ClassMapGeneratorTest: add test with consecutive duplicate heredoc markers ... as well as a test with heredoc markers with only a newline character between the start and end marker.
[{'old_path': 'tests/Composer/Test/Autoload/ClassMapGeneratorTest.php', 'new_path': 'tests/Composer/Test/Autoload/ClassMapGeneratorTest.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -55,6 +55,9 @@ public function getTestCreateMapTests()\n 'Foo\\\\LargeGap' => realpath(__DIR__) . '/Fixtures/classma...
PHP
40bd4b03addd562f3e93ac87adb9cca7c7efc14f
307
2021-08-21 17:45:43+02:00
-7,200
['b66b23a03f7db6c09c101a7805dbfa896f38b374']
ClassMapGenerator: stabilize the heredoc/nowdoc stripping I've looked into 10067 and have come to the conclusion that using a single regex to strip the heredoc/nowdocs is always going to run into trouble as: * Either the matching will be too greedy (issue 10067); * Or the matching will run into backtrace limits for la...
[{'old_path': 'src/Composer/Autoload/ClassMapGenerator.php', 'new_path': 'src/Composer/Autoload/ClassMapGenerator.php', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -246,7 +246,7 @@ private static function findClasses($path)\n }\n \n // strip heredocs/nowdocs\n- $contents = preg_replace(\'{<...
PHP
5e750171666c1f2b859c9a124e4275b5b10ced9c
425
2021-08-22 13:41:18+02:00
-3,600
['d3c176ec696c2aaf98e482fed44edf92e8975c34']
Just some comments with 'it's' that should have been 'its' (#10071) Co-authored-by: Toby Powell-Blyth <tobypowell-blyth@elasticstage.com>
[{'old_path': 'src/Composer/InstalledVersions.php', 'new_path': 'src/Composer/InstalledVersions.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -20,7 +20,7 @@\n *\n * See also https://getcomposer.org/doc/07-runtime.md#installed-versions\n *\n- * To require it's presence, you can require `composer-runtime-api...
PHP
c44be998ab707f070a41316a7d23dfec55a5df06
281
2021-08-23 13:14:02+02:00
-7,200
['40bd4b03addd562f3e93ac87adb9cca7c7efc14f']
Undo new stripping code and fix regex
[{'old_path': 'src/Composer/Autoload/ClassMapGenerator.php', 'new_path': 'src/Composer/Autoload/ClassMapGenerator.php', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -246,7 +246,29 @@ private static function findClasses($path)\n }\n \n // strip heredocs/nowdocs\n- $contents = self::stripHereN...
PHP
f6c446bdd71d568c04e3c02a0aac0169e9575f99
281
2021-08-23 13:14:15+02:00
-7,200
['c44be998ab707f070a41316a7d23dfec55a5df06']
Tweak to allow matching delimiter within the string
[{'old_path': 'src/Composer/Autoload/ClassMapGenerator.php', 'new_path': 'src/Composer/Autoload/ClassMapGenerator.php', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -257,8 +257,8 @@ private static function findClasses($path)\n (?:\n # non-word or non-space char, then anything go...
PHP
3f79e59f69da9faba32aaeeb548112ad6e1b2a9f
281
2021-08-23 13:14:16+02:00
-7,200
['f6c446bdd71d568c04e3c02a0aac0169e9575f99']
Add test assertions for heredoc marker inside the text
[{'old_path': 'tests/Composer/Test/Autoload/Fixtures/classmap/StripNoise.php', 'new_path': 'tests/Composer/Test/Autoload/Fixtures/classmap/StripNoise.php', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -19,8 +19,14 @@ class FailHeredocWhitespace\n }\n WHITESPACE . <<< MARKERINTEXT\n In PHP < 7.3, the docblock ...
PHP
73c109c5614af6def86a5ead2fef1dc47d16d298
281
2021-08-25 21:09:49+02:00
-7,200
['5e750171666c1f2b859c9a124e4275b5b10ced9c']
Make sure that names with wildcards which are not preceded by dots are also seen as package names and not version constraints
[{'old_path': 'src/Composer/Package/Version/VersionParser.php', 'new_path': 'src/Composer/Package/Version/VersionParser.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -51,7 +51,7 @@ public function parseNameVersionPairs(array $pairs)\n \n for ($i = 0, $count = count($pairs); $i < $count; $i++) {\n ...
PHP
0bed60e631ad2f61f004778956cc81f4d371c700
123
2021-08-25 22:35:34+02:00
-7,200
['73c109c5614af6def86a5ead2fef1dc47d16d298']
Correctly resolve promises when package type changes
[{'old_path': 'src/Composer/Installer/InstallationManager.php', 'new_path': 'src/Composer/Installer/InstallationManager.php', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -511,7 +511,7 @@ public function update(InstalledRepositoryInterface $repo, UpdateOperation $oper\n }\n \n $installer = ...
PHP
d8054d1d2f2c55f26a032fd6c6b43c9b340bb5b8
281
2021-08-29 12:23:02+02:00
-7,200
['6ab1b6a7d2d4a9cd708030b85181d70883d50b24']
Add more possessive quantifiers, unicode flag and support for more post-heredoc syntax, fix test file syntax being invalid
[{'old_path': 'src/Composer/Autoload/ClassMapGenerator.php', 'new_path': 'src/Composer/Autoload/ClassMapGenerator.php', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -248,19 +248,19 @@ private static function findClasses($path)\n // strip heredocs/nowdocs\n $contents = preg_replace(\'{\n ...
PHP
2c292e705d4678fe33c4956a3731e5132e890ce6
281
2021-08-29 12:37:08+02:00
-7,200
['922ba01d07c658922be39c693c9b06a6164a7c29']
Mark and close stale support issues
[{'old_path': None, 'new_path': '.github/workflows/close-stale-support.yml', 'type': <ModificationType.ADD: 1>, 'diff': "@@ -0,0 +1,25 @@\n+name: Mark and close stale support issues\n+\n+on:\n+ schedule:\n+ - cron: '32 1 * * *'\n+\n+jobs:\n+ stale:\n+\n+ runs-on: ubuntu-latest\n+ permissions:\n+ issues: w...
PHP
0158436fb498b4ceec6f892f66d821740ec2c5a0
281
2021-08-29 13:03:45+02:00
-7,200
['2c292e705d4678fe33c4956a3731e5132e890ce6']
Fix list command not showing plugin commands, fixes #10075
[{'old_path': 'src/Composer/Console/Application.php', 'new_path': 'src/Composer/Console/Application.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -187,9 +187,16 @@ public function doRun(InputInterface $input, OutputInterface $output)\n }\n \n // avoid loading plugins/initializing the Composer ...
PHP
b8e461ea6104612413a28aefcafec7ca509f793f
281
2021-08-29 13:10:22+02:00
-7,200
['0158436fb498b4ceec6f892f66d821740ec2c5a0']
Make sure /proc/version read does not fail the process ever, closes #10080
[{'old_path': 'src/Composer/Util/Platform.php', 'new_path': 'src/Composer/Util/Platform.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -108,7 +108,7 @@ public static function isWindowsSubsystemForLinux()\n return self::$isWindowsSubsystemForLinux = false;\n }\n \n- if (!i...
PHP
024f0eda5379d5c04cec00d606e1580598059d7a
281
2021-08-29 20:07:50+02:00
-7,200
['8559279025cd6f04854757681a0c54374f49727b']
Add a bunch of type info to Util namespace
[{'old_path': 'phpstan/config.neon', 'new_path': 'phpstan/config.neon', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -35,6 +35,10 @@ parameters:\n # Mock errors\n - '~^Call to an undefined method (PHPUnit\\\\Framework\\\\MockObject\\\\MockObject|Prophecy\\\\Prophecy\\\\ObjectProphecy)::.*$~'\n \n+ ...
PHP
61fba697a0f93aa1f29967328f51eec93263aa4c
281
2021-08-30 13:43:33+02:00
-7,200
['f4e2b389a11d271811abd59f2942b54565b902d7']
Fix validating array loader handling of invalid target branch datatype
[{'old_path': 'src/Composer/Package/Loader/ValidatingArrayLoader.php', 'new_path': 'src/Composer/Package/Loader/ValidatingArrayLoader.php', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -347,6 +347,13 @@ public function load(array $config, $class = \'Composer\\Package\\CompletePackage\')\n $this->er...
PHP
fc04c86f82ad54a043827cf6918945744d47053b
281
2021-08-30 13:58:31+02:00
-7,200
['61fba697a0f93aa1f29967328f51eec93263aa4c']
Add type info to Autoload namespace
[{'old_path': 'src/Composer/Autoload/ClassLoader.php', 'new_path': 'src/Composer/Autoload/ClassLoader.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -42,30 +42,75 @@\n */\n class ClassLoader\n {\n+ /** @var ?string */\n private $vendorDir;\n \n // PSR-4\n+ /**\n+ * @var array[]\n+ * @psa...
PHP
0761474599f2f813d805d171b16012052a7b2f7e
281
2021-08-30 14:46:49+02:00
-7,200
['fc04c86f82ad54a043827cf6918945744d47053b']
Add type info to many properties/methods
[{'old_path': 'phpstan/config.neon', 'new_path': 'phpstan/config.neon', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -36,8 +36,11 @@ parameters:\n - '~^Call to an undefined method (PHPUnit\\\\Framework\\\\MockObject\\\\MockObject|Prophecy\\\\Prophecy\\\\ObjectProphecy)::.*$~'\n \n # Level 6 TODO\n-...
PHP
b78570055d371099e44a3150079f30d085f9b491
266
2021-08-31 11:44:46-07:00
25,200
['01d734125cc0d82eb754c536b5c06310bcb6bdc4']
Docs: Place general troubleshooting steps in a more logical order * `self-update` should be run first, because it may affect the results of `diagnose`. * `clear-cache` should be run before `update`, otherwise `update` would need to be run again after clearing the cache.
[{'old_path': 'doc/articles/troubleshooting.md', 'new_path': 'doc/articles/troubleshooting.md', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -7,22 +7,22 @@ This is a list of common pitfalls on using Composer, and how to avoid them.\n \n ## General\n \n-1. Before asking anyone, run [`composer diagnose`](../03-cli.m...
PHP
99c6b450e6043cf614470afb99d0c3c1a586cc0d
115
2021-09-02 19:17:17+02:00
-7,200
['5b16d61762579fcd86507292789f1c92432d9e8b']
Check for returned link header in GithubDriver
[{'old_path': 'src/Composer/Repository/Vcs/GitHubDriver.php', 'new_path': 'src/Composer/Repository/Vcs/GitHubDriver.php', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -576,6 +576,10 @@ protected function getNextPage(Response $response)\n {\n $header = $response->getHeader(\'link\');\n \n+ ...
PHP
dd49db6f0864197b00c92e662f0d1ca8364e076a
281
2021-09-05 09:56:28+02:00
-7,200
['6c9aecf4e7c249ad4745fe20850adf6040062911']
Make sure that names with wildcards which are not preceded by dots are also seen as package names and not version constraints
[{'old_path': 'src/Composer/Package/Version/VersionParser.php', 'new_path': 'src/Composer/Package/Version/VersionParser.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -51,7 +51,7 @@ public function parseNameVersionPairs(array $pairs)\n \n for ($i = 0, $count = count($pairs); $i < $count; $i++) {\n ...
PHP
6179f33c747d5d8b826cc8e8bb116cf342f93f07
281
2021-09-13 21:11:55+02:00
-7,200
['4bcd860b6574fd71553019296965613cbaf95161']
Fix docker being seen as WSL when run inside WSL, fixes #10094
[{'old_path': 'src/Composer/Util/Platform.php', 'new_path': 'src/Composer/Util/Platform.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -108,7 +108,12 @@ public static function isWindowsSubsystemForLinux()\n return self::$isWindowsSubsystemForLinux = false;\n }\n \n- if (!...
PHP
8657f80ddd02c9b5a3f8a3db8ff42aabc251e485
281
2021-09-13 21:46:28+02:00
-7,200
['6179f33c747d5d8b826cc8e8bb116cf342f93f07']
Fix error output to be clearer when running composer.phar without phar extension, fixes #10097
[{'old_path': 'src/Composer/Compiler.php', 'new_path': 'src/Composer/Compiler.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -302,6 +302,11 @@ private function getStub()\n }\n }\n \n+if (!class_exists('Phar')) {\n+ echo 'PHP\\'s phar extension is missing. Composer requires it to run. Enable the extensio...
PHP
5c4e1cedb24b3e7f45ee4a5e213fc30635bb2eb0
483
2021-09-13 22:30:02+02:00
-7,200
['8657f80ddd02c9b5a3f8a3db8ff42aabc251e485']
Add ability check for ZipArchive (#10092) ZipArchive::setExternalAttributesName() is only available when libzip 0.11.2 or higher is present. This is not the case with at least SUSE SLES 12, so a simple PHP version check will not work here.
[{'old_path': 'src/Composer/Package/Archiver/ZipArchiver.php', 'new_path': 'src/Composer/Package/Archiver/ZipArchiver.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -51,8 +51,9 @@ public function archive($sources, $target, $format, array $excludes = array(), $\n \n /**\n * ZipA...
PHP
8cd2d0e54193a11753d47cff665a447580f42a13
281
2021-09-15 11:31:43+02:00
-7,200
['c44fbbc3ebdfd5b06f092c7de3e27936385bd3e1']
Fix scanning of classmaps in files containing invalid Unicode, fixes #10102
[{'old_path': 'src/Composer/Autoload/ClassMapGenerator.php', 'new_path': 'src/Composer/Autoload/ClassMapGenerator.php', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -246,7 +246,7 @@ private static function findClasses($path)\n }\n \n // strip heredocs/nowdocs\n- $contents = preg_replace(\'{\...
PHP
7305d50277c05322b1ce52a055f4e1fda2462eea
419
2021-09-15 13:16:51+02:00
-10,800
['d6a8b0252df65af4dabe14bf098f0fdfc8f2d63a']
Changed GitLab's applications URL (#10104)
[{'old_path': 'src/Composer/Util/GitLab.php', 'new_path': 'src/Composer/Util/GitLab.php', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -118,7 +118,7 @@ public function authorizeOAuthInteractively($scheme, $originUrl, $message = null\n }\n \n $this->io->writeError(sprintf(\'A token will be created a...
PHP
d64d1adf6101320b076085cb08f613854e757c2d
281
2021-10-02 14:39:39+02:00
-7,200
['d99b200cf3b9d24a166141420ca28c6a99f27bf5']
Rewrite php file cleaning step to be less regex intensive and support extreme cases better, fixes #10106 (#10107)
[{'old_path': 'src/Composer/Autoload/ClassMapGenerator.php', 'new_path': 'src/Composer/Autoload/ClassMapGenerator.php', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -214,10 +214,7 @@ private static function filterByNamespace($classes, $filePath, $baseNamespace, $\n */\n private static function findClasses...
PHP
28b2b5c0c9b16bfa59bf069d968b7c1cf6e6e863
207
2021-10-02 19:02:22+02:00
-7,200
['d64d1adf6101320b076085cb08f613854e757c2d']
tests for solver handling multiple packages with same name and version (#10110) Not a case with regular Packagist packages, but some custom installers with custom repos do this, and the current behavior should not randomly change at some point, as that would cause downstream breakage.
[{'old_path': 'tests/Composer/Test/DependencyResolver/SolverTest.php', 'new_path': 'tests/Composer/Test/DependencyResolver/SolverTest.php', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -175,6 +175,115 @@ public function testSolverInstallWithDepsInOrder()\n ));\n }\n \n+ /**\n+ * This test covers...
PHP
90d112d98a95791a90892b255bbe3e020055010a
205
2021-10-02 20:30:21+02:00
-3,600
['28b2b5c0c9b16bfa59bf069d968b7c1cf6e6e863']
Mask Git credentials in the error message (#10115)
[{'old_path': 'src/Composer/Util/Git.php', 'new_path': 'src/Composer/Util/Git.php', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -98,6 +98,7 @@ public function runCommand($commandCallable, $url, $cwd, $initialClone = false)\n $command = call_user_func($commandCallable, $url);\n \n $auth = null;\n+ ...
PHP
edccad4e05cc7a62479c9d1aabd808f43f88c092
242
2021-10-02 20:40:49+02:00
-3,600
['90d112d98a95791a90892b255bbe3e020055010a']
VcsRepository: do not continue when receiving 429 rate limit exception (#10132)
[{'old_path': 'src/Composer/Repository/VcsRepository.php', 'new_path': 'src/Composer/Repository/VcsRepository.php', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -282,7 +282,7 @@ protected function initialize()\n if ($e->getCode() === 404) {\n $this->emptyReferences[] = $...
PHP
a7963b7fed77c76d395900d3ee97fe9a39796ce3
281
2021-10-02 21:22:25+02:00
-7,200
['edccad4e05cc7a62479c9d1aabd808f43f88c092']
Fix ComposerRepository handling of offline state to allow resolution as long as everything is present in the cache, fixes #10116
[{'old_path': 'src/Composer/Repository/ComposerRepository.php', 'new_path': 'src/Composer/Repository/ComposerRepository.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -1178,6 +1178,14 @@ protected function fetchFile($filename, $cacheKey = null, $sha256 = null, $store\n throw $e;\n ...
PHP
532c6e7933dfa6f112d512617500302faa7e7892
281
2021-10-02 22:15:34+02:00
-7,200
['a7963b7fed77c76d395900d3ee97fe9a39796ce3']
Fix show --all showing only the installed version if the package is installed, fixes #10095
[{'old_path': 'src/Composer/Command/ShowCommand.php', 'new_path': 'src/Composer/Command/ShowCommand.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -27,6 +27,7 @@\n use Composer\\Repository\\InstalledArrayRepository;\n use Composer\\Repository\\ComposerRepository;\n use Composer\\Repository\\CompositeRepository...
PHP
ca5e2f8d505fd3bfac6f7c85b82f2740becbc0aa
281
2021-10-05 09:39:50+02:00
-7,200
['1a994e41d4e4ece6f1e78c2139a8dc7a977d1edd']
Fix escaping issues on Windows which could lead to command injection, fixes GHSA-frqg-7g38-6gcf
[{'old_path': 'CHANGELOG.md', 'new_path': 'CHANGELOG.md', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -1,3 +1,7 @@\n+### [1.10.23] 2021-10-05\n+\n+ * Security: Fixed command injection vulnerability on Windows (GHSA-frqg-7g38-6gcf / CVE-2021-41116)\n+\n ### [1.10.22] 2021-04-27\n \n * Security: Fixed command in...
PHP
0783b043d2f392b4b21e77cf0abed8bedcd04cd6
303
2021-10-10 17:02:22+01:00
-3,600
['8f974fe7413fb0302c11d119d29bafad14533434']
Fix Windows escaping in tests
[{'old_path': 'tests/Composer/Test/Downloader/FossilDownloaderTest.php', 'new_path': 'tests/Composer/Test/Downloader/FossilDownloaderTest.php', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -15,7 +15,6 @@\n use Composer\\Downloader\\FossilDownloader;\n use Composer\\Test\\TestCase;\n use Composer\\Util\\Filesystem;...
PHP
1e3f7cfcba886065f4649053825bebd63fd3a481
281
2021-10-12 17:32:59+02:00
-7,200
['cb1e2482580beaf3e511278dd629ded599cddc1f']
Fix handling of json error responses
[{'old_path': 'src/Composer/Util/Http/CurlDownloader.php', 'new_path': 'src/Composer/Util/Http/CurlDownloader.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -566,7 +566,7 @@ private function failResponse(array $job, Response $response, $errorMessage)\n }\n \n $details = '';\n- if ($respo...
PHP
906442117c68d138bc882a54ea961534e8c7814a
303
2021-10-13 14:54:37+01:00
-3,600
['0783b043d2f392b4b21e77cf0abed8bedcd04cd6']
Carriage returns are ignored by cmd
[{'old_path': 'src/Composer/Util/ProcessExecutor.php', 'new_path': 'src/Composer/Util/ProcessExecutor.php', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -180,9 +180,8 @@ private static function escapeArgument($argument)\n return "\'".str_replace("\'", "\'\\\\\'\'", $argument)."\'";\n }\n \n- ...
PHP
aa4de3b13ddc5c8b70b7508c6e466e4aa5edd74c
281
2021-10-13 20:24:28+02:00
-7,200
['d1c8a4d1b419889a4f53ab58173bc875a102b6f0']
Fix CurlDownloader requesting gzip encoding even though unsupported, fixes #10153
[{'old_path': 'src/Composer/Util/Http/CurlDownloader.php', 'new_path': 'src/Composer/Util/Http/CurlDownloader.php', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -195,8 +195,9 @@ private function initDownload($resolve, $reject, $origin, $url, $options, $copyT\n curl_setopt($curlHandle, CURLOPT_TIMEOUT, max(...
PHP
11810e3c2de5a0e24e34ce235bb713151e7ca0cb
301
2021-10-13 22:03:31+02:00
-7,200
['aa4de3b13ddc5c8b70b7508c6e466e4aa5edd74c']
Fix help command not working with plugin commands, fixes #10147 (#10150) - Add 'help' in the list of commands that need plugin command ($mayNeedPluginCommand) - Remove `'global' !== $commandName` because $mayNeedPluginCommand encure that $commandName is one of `false`, `empty`, `list` or `help` (so never 'global') ...
[{'old_path': 'src/Composer/Console/Application.php', 'new_path': 'src/Composer/Console/Application.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -196,10 +196,10 @@ public function doRun(InputInterface $input, OutputInterface $output)\n // not a composer command, so try loading plugin ones\n ...
PHP
f587237c55bc2ab1cd7bc4165fe967b5463982ff
281
2021-10-13 22:39:47+02:00
-7,200
['cf7fa7087ce161a11e97c88e0f2fd48e13b11dbe']
Fix diagnose output when libz is not present for curl, refs #10153
[{'old_path': 'src/Composer/Command/DiagnoseCommand.php', 'new_path': 'src/Composer/Command/DiagnoseCommand.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -413,7 +413,7 @@ private function getCurlVersion()\n $version = curl_version();\n \n return '<comment>'.$version['version'].'</comme...
PHP
bced747ed3fa9d0d673d6f566f2bfe51c0ba0303
523
2021-10-13 22:45:15+02:00
-7,200
['f587237c55bc2ab1cd7bc4165fe967b5463982ff']
Note that CMPSR_HM/config.json is partially merged (#10152)
[{'old_path': 'doc/03-cli.md', 'new_path': 'doc/03-cli.md', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -1030,8 +1030,9 @@ it points to `$XDG_CONFIG_HOME/composer`. On other \\*nix systems, it points to\n #### COMPOSER_HOME/config.json\n \n You may put a `config.json` file into the location which `COMPOSER_HOME` ...
PHP
131d6ade5d3f71d96a6ab91ab82ff27a550900d4
263
2021-10-13 22:48:58+02:00
-10,800
['bced747ed3fa9d0d673d6f566f2bfe51c0ba0303']
Add alternative to custom installers (#10149) Taken from composer/installers readme
[{'old_path': 'doc/articles/custom-installers.md', 'new_path': 'doc/articles/custom-installers.md', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -13,6 +13,16 @@ library.\n In these cases you could consider creating a Custom Installer to handle your\n specific logic.\n \n+## Alternative to custom installers with Co...
PHP
79727d35c4f4d5de98787ac3f584ffe238fa8637
281
2021-10-14 10:24:08+02:00
-7,200
['131d6ade5d3f71d96a6ab91ab82ff27a550900d4']
Avoid warning due to invalid cache dir during init, wait for first use, fixes #10125
[{'old_path': 'src/Composer/Cache.php', 'new_path': 'src/Composer/Cache.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -30,8 +30,8 @@ class Cache\n private $io;\n /** @var string */\n private $root;\n- /** @var bool */\n- private $enabled = true;\n+ /** @var ?bool */\n+ private $enabled...
PHP
260ac0011ce9eec50dbde346f090dcffbab57895
281
2021-10-14 15:12:06+02:00
-7,200
['79727d35c4f4d5de98787ac3f584ffe238fa8637']
Add constants to describe error codes from Installer::run
[{'old_path': 'src/Composer/DependencyResolver/SolverProblemsException.php', 'new_path': 'src/Composer/DependencyResolver/SolverProblemsException.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -21,6 +21,8 @@\n */\n class SolverProblemsException extends \\RuntimeException\n {\n+ const ERROR_DEPENDENCY_RESOL...
PHP
f776f524742a7cd53d7294016cba8a60a11e53cd
281
2021-10-14 15:12:29+02:00
-7,200
['260ac0011ce9eec50dbde346f090dcffbab57895']
Hint composer require alternatives if dep resolution fails, fixes #10136
[{'old_path': 'src/Composer/Command/RequireCommand.php', 'new_path': 'src/Composer/Command/RequireCommand.php', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -387,6 +387,14 @@ private function doUpdate(InputInterface $input, OutputInterface $output, IOInte\n \n $status = $install->run();\n if ($stat...
PHP
759a3a9300c02b739d8731aa4564144b2757a5b1
281
2021-10-14 15:41:44+02:00
-7,200
['f776f524742a7cd53d7294016cba8a60a11e53cd']
Fix require reverting changes even though dependency resolution succeeded if when something fails afterwards, closes #10118
[{'old_path': 'src/Composer/Command/RequireCommand.php', 'new_path': 'src/Composer/Command/RequireCommand.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -20,6 +20,7 @@\n use Symfony\\Component\\Console\\Output\\OutputInterface;\n use Composer\\Factory;\n use Composer\\Installer;\n+use Composer\\Installer\\Inst...
PHP
0868245589c395272ac762e423b27b0226456302
281
2021-10-14 16:21:47+02:00
-7,200
['4a7abd79c9305c034a9de61929fc105beafffa41']
Rename master branch to main
[{'old_path': '.github/CONTRIBUTING.md', 'new_path': '.github/CONTRIBUTING.md', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -2,7 +2,7 @@ Contributing to Composer\n ========================\n \n Please note that this project is released with a\n-[Contributor Code of Conduct](https://github.com/composer/composer/bl...
PHP
fd5b1980a1a6c36ffd6c5d313dff092948b0cf78
351
2021-10-14 17:19:23+02:00
-3,600
['bfd819779d459c79d74c015e2d8f12422b00543f']
Allow psr/log ^2.0 (#10158)
[{'old_path': 'composer.json', 'new_path': 'composer.json', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -29,7 +29,7 @@\n "composer/spdx-licenses": "^1.2",\n "composer/xdebug-handler": "^2.0",\n "justinrainbow/json-schema": "^5.2.11",\n- "psr/log": "^1.0",\n+ "psr/log": "^1.0 ...
PHP
915f3f4fb68cfee0518d4db6b686c567531a11b3
281
2021-10-15 10:42:44+02:00
-7,200
['1ef707670387d4a307cb34c7fc9c43b8466fb9b3']
Make sure that if cleanup happens before install completes on zip updates, we do not report bogus errors, fixes #9804
[{'old_path': 'src/Composer/Downloader/ArchiveDownloader.php', 'new_path': 'src/Composer/Downloader/ArchiveDownloader.php', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -26,6 +26,26 @@\n */\n abstract class ArchiveDownloader extends FileDownloader\n {\n+ /**\n+ * @var array<string, true>\n+ * @protecte...
PHP
135611fc9d84af79084adc24b46aabac407a8880
281
2021-10-15 13:37:02+02:00
-7,200
['5818b4aa51f99cc0ac111b947a27090be55aafc9']
Add deprecation baseline for php8.1+ builds which use locked or lowest dependencies
[{'old_path': '.github/workflows/continuous-integration.yml', 'new_path': '.github/workflows/continuous-integration.yml', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -109,6 +109,10 @@ jobs:\n # using ~ here to avoid issues with windows CLI removing the ^\n run: \'composer require --no-update --dev...
PHP
1dd2bc6f02d3d388007b93cf72f50fc7a8f41848
219
2021-10-15 15:11:38+02:00
-7,200
['4b2a94c397e56ae101858cd8be31dda8ad6d4f57']
Validate composer.lock strictly (#10160)
[{'old_path': '.github/workflows/continuous-integration.yml', 'new_path': '.github/workflows/continuous-integration.yml', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -132,3 +132,27 @@ jobs:\n - name: "Run complete test suite on 7.3"\n if: "matrix.php-version == \'7.3\'"\n run: "vendor/bin/si...
PHP
626370d444f333f817983b342289a8ba89c606c1
281
2021-10-16 09:47:04+02:00
-7,200
['97fe881af45ebe1b7c750f51b1fae1a379972bae']
Suggest COMPOSER_DISABLE_NETWORK if a possibly-offline state is detected (#10163) Co-authored-by: Nils Adermann <naderman@naderman.de>
[{'old_path': 'src/Composer/Util/Http/CurlDownloader.php', 'new_path': 'src/Composer/Util/Http/CurlDownloader.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -305,6 +305,8 @@ public function abortRequest($id)\n */\n public function tick()\n {\n+ static $timeoutWarning = false;\n+\n i...
PHP
6d5f6eb090a1ac394fae474fb7aa69ff046d05c9
523
2021-10-16 10:36:02+02:00
-7,200
['c3c6969cf5514fdfd59eae2f1d5bcd4e8be24b88']
Reaching phpstan level 6 in Composer\IO (#10166)
[{'old_path': 'src/Composer/IO/BaseIO.php', 'new_path': 'src/Composer/IO/BaseIO.php', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -30,7 +30,7 @@ public function getAuthentications()\n }\n \n /**\n- * {@inheritDoc}\n+ * @return void\n */\n public function resetAuthentications()\n {\n@@...
PHP
3861ce68cd3a3dfa800141a526725e77d1e97daf
219
2021-10-16 22:30:15+02:00
-7,200
['7d88de7d0baafb82b7a9c6508ade150a1dfb4a25']
Replace master by main (#10171)
[{'old_path': '.github/pull_request_template.md', 'new_path': '.github/pull_request_template.md', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -2,4 +2,4 @@\n \n For bug or doc fixes pick the oldest branch where the fix applies (e.g. 2.1 or similar if such a branch exists, or 1.10 if it is a critical fix that shoul...
PHP
9f4b5c10a7e85c92b90ab58a589b6773a3e32cdb
281
2021-10-16 22:32:18+02:00
-7,200
['3861ce68cd3a3dfa800141a526725e77d1e97daf']
Update branch name in badge link
[{'old_path': 'README.md', 'new_path': 'README.md', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -5,7 +5,7 @@ Composer helps you declare, manage, and install dependencies of PHP projects.\n \n See [https://getcomposer.org/](https://getcomposer.org/) for more information and documentation.\n \n-[![Continuous Integr...
PHP
04c157bf320760ddb062ca2f7f99e1c58b767e0c
420
2021-10-16 22:35:31+02:00
-7,200
['9f4b5c10a7e85c92b90ab58a589b6773a3e32cdb']
Reaching phpstan level 6 in Composer/SelfUpdate (#10169)
[{'old_path': 'src/Composer/SelfUpdate/Keys.php', 'new_path': 'src/Composer/SelfUpdate/Keys.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -17,6 +17,11 @@\n */\n class Keys\n {\n+ /**\n+ * @param string $path\n+ *\n+ * @return string\n+ */\n public static function fingerprint($path)\n ...
PHP
9fde6ec88bc91cfbf91b5ecb66cffe16a56425c1
219
2021-10-16 22:42:32+02:00
-7,200
['04c157bf320760ddb062ca2f7f99e1c58b767e0c']
PHPStan level 6 in src/Composer/Json (#10172)
[{'old_path': 'src/Composer/Json/JsonFile.php', 'new_path': 'src/Composer/Json/JsonFile.php', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -115,9 +115,10 @@ public function read()\n /**\n * Writes json file.\n *\n- * @param array $hash writes hash into json file...
PHP
b8e2fcd33deeec88a0c26aa5e8f8dea928212e30
345
2021-10-17 13:51:25+02:00
-7,200
['f25398f52ca50cd041f08462841b81e39e76dadf']
Fix reference to main branch (#10173)
[{'old_path': 'doc/faqs/how-to-install-composer-programmatically.md', 'new_path': 'doc/faqs/how-to-install-composer-programmatically.md', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -39,4 +39,4 @@ wget https://raw.githubusercontent.com/composer/getcomposer.org/76a7060ccb93902c\n ```\n \n You may replace the commi...
PHP
c9b80bc3b6d2bbac659ead1db41cf1a4e53e6d09
345
2021-10-17 13:51:42+02:00
-7,200
['b8e2fcd33deeec88a0c26aa5e8f8dea928212e30']
Fix reference to main [ci skip] (#10174)
[{'old_path': 'doc/00-intro.md', 'new_path': 'doc/00-intro.md', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -49,7 +49,7 @@ Linux and macOS.\n \n Composer offers a convenient installer that you can execute directly from the\n command line. Feel free to [download this file](https://getcomposer.org/installer)\n-or r...
PHP
98f146561022d64de2edd45dfff5faec4cc1ff30
420
2021-10-17 13:52:01+02:00
-7,200
['c9b80bc3b6d2bbac659ead1db41cf1a4e53e6d09']
Phpstan level 6 in Composer/Plaform and Composer/Script (#10159) (#10170)
[{'old_path': 'src/Composer/Platform/HhvmDetector.php', 'new_path': 'src/Composer/Platform/HhvmDetector.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -31,11 +31,17 @@ public function __construct(ExecutableFinder $executableFinder = null, ProcessEx\n $this->processExecutor = $processExecutor;\n }\n...
PHP
a6f1e803b1d674ae844dd2662c39c806e4063710
281
2021-10-17 14:43:34+02:00
-7,200
['b2098160568d161a9b7a35c05f2dd1c78fb9d8d8']
Use more BasePackage instead of PackageInterface
[{'old_path': 'src/Composer/DependencyResolver/Request.php', 'new_path': 'src/Composer/DependencyResolver/Request.php', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -13,7 +13,7 @@\n namespace Composer\\DependencyResolver;\n \n use Composer\\Package\\Package;\n-use Composer\\Package\\PackageInterface;\n+use Compose...
PHP
04ab74bbefacb23f5267c352e01b31f7c96eb980
281
2021-10-18 10:51:16+02:00
-7,200
['a6f1e803b1d674ae844dd2662c39c806e4063710']
Avoid checking for hhvm in a loop, refs #10170
[{'old_path': 'src/Composer/Platform/HhvmDetector.php', 'new_path': 'src/Composer/Platform/HhvmDetector.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -50,6 +50,7 @@ public function getVersion()\n \n self::$hhvmVersion = defined('HHVM_VERSION') ? HHVM_VERSION : null;\n if (self::$hhvmVersion ==...
PHP
50d738eeeea05b81b78e4e99f5eed58988a5dd22
523
2021-10-18 22:33:37+02:00
-7,200
['04ab74bbefacb23f5267c352e01b31f7c96eb980']
Reaching phpstan level 6 in Composer/DependencyResolver (refs #10159) (#10178)
[{'old_path': 'src/Composer/DependencyResolver/Decisions.php', 'new_path': 'src/Composer/DependencyResolver/Decisions.php', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -16,7 +16,7 @@\n * Stores decisions on installing, removing or keeping packages\n *\n * @author Nils Adermann <naderman@naderman.de>\n- * @impl...
PHP
6e0499148978bdda9fa3bacc59b15d3d4cd72faf
444
2021-10-18 22:40:50+02:00
-7,200
['7e1f4882af08f3a86280823d525bdf505b92a2aa']
Reaching phpstan level 6 in Composer/Console (refs #10159) (#10183)
[{'old_path': 'src/Composer/Console/Application.php', 'new_path': 'src/Composer/Console/Application.php', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -368,7 +368,9 @@ private function getNewWorkingDir(InputInterface $input)\n }\n \n /**\n- * {@inheritDoc}\n+ * @param \\Exception $exception\n+ ...
PHP
be25cf1d7ad2f46b992630fa75ab985f55483d97
523
2021-10-18 23:40:22+02:00
-7,200
['57e417b53a0823b701bd7d6b00fd20171a1193d2']
Reaching phpstan level 6 in Composer/Autoload (refs #10159) (#10179) Co-authored-by: Jordi Boggiano <j.boggiano@seld.be>
[{'old_path': 'src/Composer/Autoload/AutoloadGenerator.php', 'new_path': 'src/Composer/Autoload/AutoloadGenerator.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -22,7 +22,6 @@\n use Composer\\Repository\\InstalledRepositoryInterface;\n use Composer\\Repository\\PlatformRepository;\n use Composer\\Semver\\Const...
PHP
87f25e6df63979b7a032e3cbcb244721e1a113bb
281
2021-10-18 23:49:57+02:00
-7,200
['be25cf1d7ad2f46b992630fa75ab985f55483d97']
Specify parseAutoloads more narrowly, refs #10179
[{'old_path': 'src/Composer/Autoload/AutoloadGenerator.php', 'new_path': 'src/Composer/Autoload/AutoloadGenerator.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -533,11 +533,11 @@ protected function validatePackage(PackageInterface $package)\n * @param bool|string[] $filteredDevPackages If an array, the l...
PHP
3add01a40b5b64d5726dccfdac22b6dd8011a55f
444
2021-10-18 23:51:43+02:00
-7,200
['87f25e6df63979b7a032e3cbcb244721e1a113bb']
PHPStan level 6 in src/Composer/Config (refs #10159) (#10182)
[{'old_path': 'src/Composer/Config/JsonConfigSource.php', 'new_path': 'src/Composer/Config/JsonConfigSource.php', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -206,6 +206,13 @@ public function removeLink($type, $name)\n });\n }\n \n+ /**\n+ * @param string $method\n+ * @param mixed ...$args\...
PHP
0b8089fe804fc1ae7908bc652176e1693cb6d01d
281
2021-10-19 00:04:49+02:00
-7,200
['3add01a40b5b64d5726dccfdac22b6dd8011a55f']
Ignore some irrelevant PHPStan errors in test files
[{'old_path': 'phpstan/config.neon', 'new_path': 'phpstan/config.neon', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -35,6 +35,11 @@ parameters:\n # Mock errors\n - '~^Call to an undefined method (PHPUnit\\\\Framework\\\\MockObject\\\\MockObject|Prophecy\\\\Prophecy\\\\ObjectProphecy)::.*$~'\n \n+ ...
PHP
f0cc9aeb01a9179748c5c6fdb2b8cf009f15708b
346
2021-10-19 13:10:21+02:00
-7,200
['6d37c1f8ab15dcff2a0e3779919ff5f39a1fa0f4']
Remove scalar parameter type declaration (#10186) `string` can only be used in parameters starting from PHP 7.0.
[{'old_path': 'src/Composer/Util/Git.php', 'new_path': 'src/Composer/Util/Git.php', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -422,7 +422,13 @@ public static function getVersion(ProcessExecutor $process)\n return self::$version;\n }\n \n- private function maskCredentials(string $error, array $cre...
PHP
37ce8969a4dacbf149ad71c71cf9b7ebf82946d7
281
2021-10-19 13:11:04+02:00
-7,200
['f0cc9aeb01a9179748c5c6fdb2b8cf009f15708b']
Use real type hint instead of annotation
[{'old_path': 'src/Composer/Console/Application.php', 'new_path': 'src/Composer/Console/Application.php', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -368,11 +368,9 @@ private function getNewWorkingDir(InputInterface $input)\n }\n \n /**\n- * @param \\Exception $exception\n- *\n * @return voi...
PHP
261d93aacf80d7e28cb22b1b096c94e51baf0d37
242
2021-10-19 13:14:12+02:00
-3,600
['37ce8969a4dacbf149ad71c71cf9b7ebf82946d7']
ComposerRepository: handle packages.json with null value for package (#10189)
[{'old_path': 'src/Composer/Repository/ComposerRepository.php', 'new_path': 'src/Composer/Repository/ComposerRepository.php', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -1038,10 +1038,12 @@ private function loadIncludes($data)\n // legacy repo handling\n if (!isset($data['packages']) && !isset($d...
PHP
995bf5a932cee736227804b97a133ee3ffa33abf
346
2021-10-19 14:35:37+02:00
-7,200
['261d93aacf80d7e28cb22b1b096c94e51baf0d37']
Add types to `Util` namespace, refs #10159 (#10190)
[{'old_path': 'src/Composer/Repository/Vcs/GitHubDriver.php', 'new_path': 'src/Composer/Repository/Vcs/GitHubDriver.php', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -469,7 +469,7 @@ protected function getContents($url, $fetchingRepoData = false)\n }\n }\n \n- ...
PHP
dbd0ccaad857aadf585ebdef4c1c1a5fe3971d28
420
2021-10-20 21:54:38+02:00
-7,200
['cbc686c16a21f01ba351d74be4d1ef84c89fc8f2']
phpstan level 6 in src/Composer/Package/Archiver (refs #10159) (#10195)
[{'old_path': 'src/Composer/Package/Archiver/ArchivableFilesFilter.php', 'new_path': 'src/Composer/Package/Archiver/ArchivableFilesFilter.php', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -36,6 +36,11 @@ public function accept()\n return true;\n }\n \n+ /**\n+ * @param string $sources\n+ *\...
PHP
db9e9a544e2ce117b71f1076ab7e4aeb5a90a5ca
346
2021-10-20 22:19:53+02:00
-7,200
['dbd0ccaad857aadf585ebdef4c1c1a5fe3971d28']
Add types to `Package/Dumper` (#10198)
[{'old_path': 'src/Composer/Package/Dumper/ArrayDumper.php', 'new_path': 'src/Composer/Package/Dumper/ArrayDumper.php', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -23,6 +23,9 @@\n */\n class ArrayDumper\n {\n+ /**\n+ * @return array<string, mixed>\n+ */\n public function dump(PackageInterface $pa...
PHP
b99e21259c09a6da2614f286b7ad548fec8036a0
420
2021-10-20 22:20:33+02:00
-7,200
['db9e9a544e2ce117b71f1076ab7e4aeb5a90a5ca']
phpstan level 6 in src/Composer/Package/Comparer (refs #10159) (#10196)
[{'old_path': 'src/Composer/Package/Comparer/Comparer.php', 'new_path': 'src/Composer/Package/Comparer/Comparer.php', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -26,16 +26,32 @@ class Comparer\n /** @var array{changed?: string[], removed?: string[], added?: string[]} */\n private $changed;\n \n+ /**\n...
PHP