diff --git a/src/Json/Repository.php b/src/Json/Repository.php index e888d1e..9f9fa8d 100644 --- a/src/Json/Repository.php +++ b/src/Json/Repository.php @@ -45,7 +45,7 @@ public function __construct(array $data = []) $this->url = (array_key_exists('url', $data) ? $data['url'] : ''); $this->options = (array_key_exists('options', $data) ? $data['options'] : []); - $this->package = (array_key_exists('package', $data) ? new ComposerJson($data['pacakge']) : null); + $this->package = (array_key_exists('package', $data) ? new ComposerJson($data['package']) : null); } /** @@ -70,7 +70,7 @@ public function getUrl() : string * Gets the additional options of the repository. * @return array */ - public function getOptions() : string + public function getOptions() : array { return $this->options; } @@ -79,7 +79,7 @@ public function getOptions() : string * Gets the parsed "package" key of the repository. * @return ComposerJson|null */ - public function getPackage() : ComposerJson + public function getPackage() : ?ComposerJson { return $this->package; }