Skip to content

Commit 3537a70

Browse files
authored
Merge pull request MyIntervals#344 from TimWolla/patch-1
Fix PHP 8.1 compatibility in ParserState::strsplit()
2 parents 2cce205 + 84b3ba7 commit 3537a70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Parsing/ParserState.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ private function strsplit($sString)
480480
{
481481
if ($this->oParserSettings->bMultibyteSupport) {
482482
if ($this->streql($this->sCharset, 'utf-8')) {
483-
return preg_split('//u', $sString, null, PREG_SPLIT_NO_EMPTY);
483+
return preg_split('//u', $sString, -1, PREG_SPLIT_NO_EMPTY);
484484
} else {
485485
$iLength = mb_strlen($sString, $this->sCharset);
486486
$aResult = [];

0 commit comments

Comments
 (0)