Skip to content

Commit

Permalink
Fix return types & fix package typo
Browse files Browse the repository at this point in the history
  • Loading branch information
antonkomarev committed Sep 9, 2019
1 parent 6b14230 commit 3e48ba3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Json/Repository.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand All @@ -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;
}
Expand All @@ -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;
}
Expand Down

0 comments on commit 3e48ba3

Please sign in to comment.