Skip to content

Commit

Permalink
Support PHP 8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
E1379 committed Dec 1, 2022
1 parent c654326 commit 4d506a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
}
},
"require-dev": {
"phpspec/phpspec": "^3.2"
"phpspec/phpspec": "^7.2"
}
}
2 changes: 1 addition & 1 deletion src/SpeakingUrl.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ function getSlug($input, $opts = [])
$lastCharWasSymbol = false;
$lastCharWasDiatric = false;

$inputChars = preg_split('//u', $input, null, PREG_SPLIT_NO_EMPTY);
$inputChars = preg_split('//u', $input, 0, PREG_SPLIT_NO_EMPTY);
$l = count($inputChars);

foreach ($inputChars as $i => $ch) {
Expand Down

0 comments on commit 4d506a7

Please sign in to comment.