Skip to content

Commit

Permalink
Merge pull request Setono#41 from Setono/fix-text-setter
Browse files Browse the repository at this point in the history
Allow setter with null
  • Loading branch information
loevgaard authored Apr 1, 2021
2 parents 0d76628 + c4f84bb commit 1eed6c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Model/CalloutTranslation.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function getText(): ?string
return $this->text;
}

public function setText(string $text): void
public function setText(?string $text): void
{
$this->text = $text;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Model/CalloutTranslationInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ interface CalloutTranslationInterface extends ResourceInterface, TranslationInte
{
public function getText(): ?string;

public function setText(string $text): void;
public function setText(?string $text): void;
}

0 comments on commit 1eed6c8

Please sign in to comment.