Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PHP7.0] htmlspecialchars() expects parameter 1 to be string, array given #29

Closed
francesco-loreti opened this issue Nov 26, 2019 · 1 comment

Comments

@francesco-loreti
Copy link

Cause:

"htmlspecialchars() expects parameter 1 to be string, array given" into
Zend/View/Abstract.php line 905

Solution:
`
if (in_array($this->_escape, array('htmlspecialchars', 'htmlentities'))) {
return call_user_func($this->_escape, "{$var}", ENT_COMPAT, $this->_encoding);
}

    if (1 == func_num_args()) {
        return call_user_func($this->_escape, "{$var}");
    }

`

@Shardj
Copy link
Owner

Shardj commented Dec 4, 2019

If you're making a PR feel free to skip out on creating an issue, this is only a small repo so there's no need for both

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants