@@ -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];  | 
                                                        
@@ -137,7 +137,7 @@ discard block  | 
                                                    ||
| 137 | 137 | }  | 
                                                        
| 138 | 138 | |
| 139 | 139 | /**  | 
                                                        
| 140 | - * @return AnyString  | 
                                                        |
| 140 | + * @return string  | 
                                                        |
| 141 | 141 | */  | 
                                                        
| 142 | 142 | public function __toString()  | 
                                                        
| 143 | 143 |      { | 
                                                        
@@ -160,6 +160,9 @@ discard block  | 
                                                    ||
| 160 | 160 | return self::duplicate($anystring, $str);  | 
                                                        
| 161 | 161 | }  | 
                                                        
| 162 | 162 | |
| 163 | + /**  | 
                                                        |
| 164 | + * @param string $str  | 
                                                        |
| 165 | + */  | 
                                                        |
| 163 | 166 | protected static function duplicate(AnyString $anystring, $str)  | 
                                                        
| 164 | 167 |      { | 
                                                        
| 165 | 168 | $classname = \get_class($anystring);  |