Skip to content

Commit 98085b6

Browse files
committed
Fix renderer option "language" cannot be an array
Signed-off-by: Jack Cherng <[email protected]>
1 parent 3518068 commit 98085b6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Renderer/AbstractRenderer.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,12 @@ abstract protected function renderWoker(Differ $differ): string;
133133
/**
134134
* Update the Language object.
135135
*
136-
* @param string $old the old language
137-
* @param string $new the new language
136+
* @param string|string[] $old the old language
137+
* @param string|string[] $new the new language
138138
*
139139
* @return self
140140
*/
141-
protected function updateLanguage(string $old, string $new): self
141+
protected function updateLanguage($old, $new): self
142142
{
143143
if (!isset($this->t) || $old !== $new) {
144144
$this->t = new Language($new);

0 commit comments

Comments
 (0)