Skip to content

Commit ca44317

Browse files
committed
Mark shasum and reference property of Dist as nullable
This is the case in, for example, https://packagist.org/packages/roots/wordpress.json
1 parent c0d32f1 commit ca44317

File tree

1 file changed

+4
-4
lines changed
  • src/Packagist/Api/Result/Package

1 file changed

+4
-4
lines changed

src/Packagist/Api/Result/Package/Dist.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@
88

99
class Dist extends AbstractResult
1010
{
11-
protected string $shasum;
11+
protected ?string $shasum;
1212

1313
protected string $type;
1414

1515
protected string $url;
1616

17-
protected string $reference;
17+
protected ?string $reference;
1818

19-
public function getShasum(): string
19+
public function getShasum(): ?string
2020
{
2121
return $this->shasum;
2222
}
@@ -31,7 +31,7 @@ public function getUrl(): string
3131
return $this->url;
3232
}
3333

34-
public function getReference(): string
34+
public function getReference(): ?string
3535
{
3636
return $this->reference;
3737
}

0 commit comments

Comments
 (0)