Skip to content

Commit 546d7f4

Browse files
committed
typed matches
1 parent 6be2b3b commit 546d7f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Filter/Naming.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function filter(mixed $value): string
3838
// Ensure the letter after apostrophe/hyphen is uppercase (Unicode-safe)
3939
$value = preg_replace_callback(
4040
"/(?<=^|\s)(\p{L}+'?)(\p{Ll})/u",
41-
static function ($matches): string {
41+
static function (array $matches): string {
4242
// only uppercase if it's single-letter prefix like D' or O'
4343
if (mb_strlen($matches[1], 'UTF-8') === 2 && str_ends_with($matches[1], "'")) {
4444
return $matches[1] . mb_strtoupper($matches[2], 'UTF-8');

0 commit comments

Comments
 (0)