Skip to content

Commit ab7fd2b

Browse files
Update src/Transformers/EnumTransformer.php
Co-authored-by: Jacob Dreesen <[email protected]>
1 parent 009f218 commit ab7fd2b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Transformers/EnumTransformer.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,10 @@ protected function toEnumValue(ReflectionEnumBackedCase $case): string
8282
for ($i = 0; $i < strlen($value); $i++) {
8383
$char = $value[$i];
8484

85-
match ($char) {
86-
'\\' => $newValue .= '\\\\',
87-
'\'' => $newValue .= '\\\'',
88-
default => $newValue .= $char,
85+
$newValue .= match ($char) {
86+
'\\' => '\\\\',
87+
'\'' => '\\\'',
88+
default => $char,
8989
};
9090
}
9191

0 commit comments

Comments
 (0)