We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6be2b3b commit 546d7f4Copy full SHA for 546d7f4
src/Filter/Naming.php
@@ -38,7 +38,7 @@ public function filter(mixed $value): string
38
// Ensure the letter after apostrophe/hyphen is uppercase (Unicode-safe)
39
$value = preg_replace_callback(
40
"/(?<=^|\s)(\p{L}+'?)(\p{Ll})/u",
41
- static function ($matches): string {
+ static function (array $matches): string {
42
// only uppercase if it's single-letter prefix like D' or O'
43
if (mb_strlen($matches[1], 'UTF-8') === 2 && str_ends_with($matches[1], "'")) {
44
return $matches[1] . mb_strtoupper($matches[2], 'UTF-8');
0 commit comments