tchwork / utf8

Portable and performant UTF-8, Unicode and Grapheme Clusters for PHP
Apache License 2.0
627 stars 50 forks source link

Deprecated each() function #74

Closed rxu closed 3 years ago

rxu commented 4 years ago

each() function has been deprecated as of PHP 7.2 and has been removed in yet unreleased PHP 8. It's used here https://github.com/tchwork/utf8/blob/master/src/Patchwork/Utf8/WindowsStreamWrapper.php#L109

Please consider replacing it with another implementation (f.e. if ($c = current($this->handle)) or something) if possible. The library is used by another projects requiring PHP 7.2+ compatibility. Thanks.