Fix parameter name mismatch in `View::escape` method

The mismatch arises after migration from ZF1 to ZF-future.
This commit is contained in:
raviks789 2023-07-04 09:57:52 +02:00
parent 695fe25891
commit 8e3c456327
1 changed files with 3 additions and 3 deletions

View File

@ -99,12 +99,12 @@ class View extends Zend_View_Abstract
/**
* Escape the given value top be safely used in view scripts
*
* @param string $value The output to be escaped
* @param string $var The output to be escaped
* @return string
*/
public function escape($value)
public function escape($var)
{
return htmlspecialchars($value ?? '', ENT_COMPAT | ENT_SUBSTITUTE | ENT_HTML5, self::CHARSET, true);
return htmlspecialchars($var ?? '', ENT_COMPAT | ENT_SUBSTITUTE | ENT_HTML5, self::CHARSET, true);
}
/**