@@ -157,6 +157,9 @@ |
||
157 | 157 | return self::duplicate($strobj, $str); |
158 | 158 | } |
159 | 159 | |
160 | + /** |
|
161 | + * @param string $str |
|
162 | + */ |
|
160 | 163 | protected static function duplicate(AnyStrObj $strobj, $str) |
161 | 164 | { |
162 | 165 | $classname = \get_class($strobj); |
@@ -151,7 +151,8 @@ |
||
151 | 151 | continue; |
152 | 152 | } |
153 | 153 | |
154 | - if ($ordcache === 0xFEFF) { // BOM |
|
154 | + if ($ordcache === 0xFEFF) { |
|
155 | +// BOM |
|
155 | 156 | if ($originOffset !== 0) { |
156 | 157 | // if not at beginning, store as word joiner U+2060 |
157 | 158 | $this->chars[] = [\chr(0xE2) . \chr(0x81) . \chr(0xA0), 0x2060]; |