Skip to content

Commit f999b24

Browse files
committed
refactor(view): use named parameters
1 parent 30ed8eb commit f999b24

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/view/src/Renderers/TempestViewRenderer.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,11 @@ public function escape(null|string|HtmlString|Stringable $value): string
135135
return (string) $value;
136136
}
137137

138-
return htmlentities((string) $value, ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8');
138+
return htmlentities(
139+
string: (string) $value,
140+
flags: ENT_QUOTES | ENT_SUBSTITUTE,
141+
encoding: 'UTF-8',
142+
);
139143
}
140144

141145
private function validateView(View $view): void

0 commit comments

Comments
 (0)