Skip to content
This repository was archived by the owner on Oct 24, 2023. It is now read-only.

Commit 621195d

Browse files
author
Jens Schulze
committed
fix(LocalizedString): use graceful flag for language property getter
1 parent 76db8b5 commit 621195d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Model/Common/LocalizedString.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function __construct(array $values, $context = null)
4545
public function __get($locale)
4646
{
4747
$context = new Context();
48-
$context->setLanguages([$locale]);
48+
$context->setLanguages([$locale])->setGraceful($this->getContext()->isGraceful());
4949
return $this->get($context);
5050
}
5151

0 commit comments

Comments
 (0)