Skip to content

Commit 02a5b09

Browse files
committed
php8
1 parent 0a0b346 commit 02a5b09

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

StringInflector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ private function matchRegexRule($word, $ruleType)
193193
// Cycle through the regex rules.
194194
foreach ($this->rules[$ruleType] as $regex => $replacement) {
195195
$matches = 0;
196-
$matchedWord = preg_replace($regex, $replacement, $word, -1, $matches);
196+
$matchedWord = preg_replace($regex, $replacement, (string) $word, -1, $matches);
197197

198198
if ($matches > 0) {
199199
return $matchedWord;

0 commit comments

Comments
 (0)