From 3e48ba3e4372024c426c5cb7b12c3241d7491065 Mon Sep 17 00:00:00 2001 From: antonkomarev Date: Mon, 9 Sep 2019 06:58:02 +0300 Subject: [PATCH] Fix return types & fix package typo --- src/Json/Repository.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; }