Updated some type hints

This commit is contained in:
Cédric Belin
2019-03-13 13:24:29 +01:00
parent 3465ba6948
commit a1756d5947
5 changed files with 37 additions and 37 deletions

View File

@ -211,11 +211,11 @@ class PushEvent implements \JsonSerializable {
/**
* Sets the URL for comparing the revisions.
* @param UriInterface|string|null $value The URL for comparing the revisions.
* @param UriInterface|null $value The URL for comparing the revisions.
* @return $this This instance.
*/
function setCompareUrl($value): self {
$this->compareUrl = is_string($value) ? new Uri($value) : $value;
function setCompareUrl(?UriInterface $value): self {
$this->compareUrl = $value;
return $this;
}