Skip to content

Commit

Permalink
Mark shasum and reference property of Dist as nullable
Browse files Browse the repository at this point in the history
This is the case in, for example, https://packagist.org/packages/roots/wordpress.json
  • Loading branch information
jdrieghe committed Jan 26, 2022
1 parent c0d32f1 commit ca44317
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Packagist/Api/Result/Package/Dist.php
Expand Up @@ -8,15 +8,15 @@

class Dist extends AbstractResult
{
protected string $shasum;
protected ?string $shasum;

protected string $type;

protected string $url;

protected string $reference;
protected ?string $reference;

public function getShasum(): string
public function getShasum(): ?string
{
return $this->shasum;
}
Expand All @@ -31,7 +31,7 @@ public function getUrl(): string
return $this->url;
}

public function getReference(): string
public function getReference(): ?string
{
return $this->reference;
}
Expand Down

0 comments on commit ca44317

Please sign in to comment.