Skip to content

Commit 15e91b2

Browse files
committed
empty string context is impossible
1 parent 62a8366 commit 15e91b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/View/View.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ public function setData(array $data = [], ?string $context = null): RendererInte
356356
*/
357357
public function setVar(string $name, $value = null, ?string $context = null): RendererInterface
358358
{
359-
if ($context !== null && $context !== '') {
359+
if ($context !== null) {
360360
$value = esc($value, $context);
361361
}
362362

0 commit comments

Comments
 (0)