Skip to content

Commit 234cef8

Browse files
committed
use mb_substr()
1 parent 617769d commit 234cef8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Writer/Entity/Variant.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public function __construct(public string $id)
1515

1616
public function addDisplayValue(string $value, string $displayValue): void
1717
{
18-
$this->displayValues[$value] = substr($displayValue, 0, 256);
18+
$this->displayValues[$value] = mb_substr($displayValue, 0, 256);
1919
}
2020

2121
public function write(XmlWriter $writer): void

0 commit comments

Comments
 (0)