diff --git a/src/Library.php b/src/Library.php index 152d075..8b4a073 100644 --- a/src/Library.php +++ b/src/Library.php @@ -185,6 +185,9 @@ protected function getJson() return $this->json; } $composer = Util::joinPaths($this->getPath(), 'composer.json'); + if (!file_exists($composer)) { + return []; + } $file = new JsonFile($composer); $this->json = $file->read(); return $this->json;