Skip to content

Commit

Permalink
Merge pull request #101 from cdosoftei/main
Browse files Browse the repository at this point in the history
Full support for PHP 8.1: Update preg_split() default $limit argument
  • Loading branch information
clue authored Jan 26, 2022
2 parents 762ba8c + 009f391 commit 82d80ee
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
strategy:
matrix:
php:
- 8.1
- 8.0
- 7.4
- 7.3
Expand Down
3 changes: 2 additions & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
bootstrap="vendor/autoload.php"
colors="true"
cacheResult="false">
cacheResult="false"
convertDeprecationsToExceptions="true">
<testsuites>
<testsuite name="Stdio React Test Suite">
<directory>./tests/</directory>
Expand Down
2 changes: 1 addition & 1 deletion src/Readline.php
Original file line number Diff line number Diff line change
Expand Up @@ -938,7 +938,7 @@ public function strwidth($str)
*/
private function strsplit($str)
{
return preg_split('//u', $str, null, PREG_SPLIT_NO_EMPTY);
return preg_split('//u', $str, -1, PREG_SPLIT_NO_EMPTY);
}

/**
Expand Down

0 comments on commit 82d80ee

Please sign in to comment.