Skip to content
Snippets Groups Projects
Commit 51991d3a authored by jurgenhaas's avatar jurgenhaas
Browse files

Get ready for composer 2

parent 9ef02809
No related branches found
No related tags found
No related merge requests found
vendor
composer.lock
/vendor/
/.env
/composer.lock
......@@ -4,6 +4,7 @@ namespace LakeDrops\Component\Composer;
use Composer\Composer;
use Composer\Json\JsonFile;
use Exception;
/**
* Manages composer.json files.
......@@ -94,7 +95,7 @@ final class Utils {
try {
$jsonFile->write($this->content);
}
catch (\Exception $ex) {
catch (Exception $ex) {
// Let's ignore this, if composer.json is read-only there is a general problem.
}
return $this;
......@@ -209,7 +210,7 @@ final class Utils {
}
}
if (\in_array($pattern, self::$ignoredGitPatterns, TRUE)) {
if (in_array($pattern, self::$ignoredGitPatterns, TRUE)) {
return;
}
......
......@@ -28,8 +28,8 @@
"ext-json": "*"
},
"require-dev": {
"composer/composer": "^1.5.0",
"phpunit/phpunit": "^4.8.0"
"composer/composer": "^1||^2",
"phpunit/phpunit": "^8.4"
},
"minimum-stability": "dev",
"prefer-stable": true,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment