Skip to content

Commit

Permalink
laminas#7: Changes to pass tests
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Hamilton <kevin@eagleeye.com>
  • Loading branch information
TotalWipeOut committed May 16, 2024
1 parent feac441 commit 7d257af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Translator/Translator.php
Original file line number Diff line number Diff line change
Expand Up @@ -850,9 +850,9 @@ public function setPlaceholder(PlaceholderInterface $placeholder)
/**
* @param iterable<string|int, string> $placeholders
*/
protected function compileMessage(string $message, iterable $placeholders, string $locale): string
protected function compileMessage(?string $message, iterable $placeholders, string $locale): ?string
{
return $this->placeholder ?
return $this->placeholder && $message ?
$this->placeholder->compile(
$locale,
$message,
Expand Down

0 comments on commit 7d257af

Please sign in to comment.