Skip to content

Commit

Permalink
Merge pull request #3 from cybercog/fix/repository-class
Browse files Browse the repository at this point in the history
Fix return types & fix package typo
  • Loading branch information
MCStreetguy authored Sep 9, 2019
2 parents 6b14230 + 3e48ba3 commit ee3cc60
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 ee3cc60

Please sign in to comment.