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 /vendor/
composer.lock /.env
/composer.lock
...@@ -4,6 +4,7 @@ namespace LakeDrops\Component\Composer; ...@@ -4,6 +4,7 @@ namespace LakeDrops\Component\Composer;
use Composer\Composer; use Composer\Composer;
use Composer\Json\JsonFile; use Composer\Json\JsonFile;
use Exception;
/** /**
* Manages composer.json files. * Manages composer.json files.
...@@ -94,7 +95,7 @@ final class Utils { ...@@ -94,7 +95,7 @@ final class Utils {
try { try {
$jsonFile->write($this->content); $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. // Let's ignore this, if composer.json is read-only there is a general problem.
} }
return $this; return $this;
...@@ -209,7 +210,7 @@ final class Utils { ...@@ -209,7 +210,7 @@ final class Utils {
} }
} }
if (\in_array($pattern, self::$ignoredGitPatterns, TRUE)) { if (in_array($pattern, self::$ignoredGitPatterns, TRUE)) {
return; return;
} }
......
...@@ -28,8 +28,8 @@ ...@@ -28,8 +28,8 @@
"ext-json": "*" "ext-json": "*"
}, },
"require-dev": { "require-dev": {
"composer/composer": "^1.5.0", "composer/composer": "^1||^2",
"phpunit/phpunit": "^4.8.0" "phpunit/phpunit": "^8.4"
}, },
"minimum-stability": "dev", "minimum-stability": "dev",
"prefer-stable": true, "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