volt - text_area & htmlspecialchars #15991
davidcorreia
started this conversation in
General
Replies: 1 comment 1 reply
-
You could for now use the If you don't mind, can you please open an issue so that I can add a workaround ? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have been testing phalcon v5 (RC1 and just now RC2) with php8.1 and i keep getting warnings like
PHP Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/cache/_var_www_html_app_views_index.volt.php on line 453
when i edit the "compiled" file what i see in line 453 is this:
<?= \Phalcon\Tag::textArea(['suggest', 'class' => 'form-control', 'style' => 'height:100px']) ?>
origin code is
{{ text_area("suggest", 'class':'form-control', 'style':'height:100px') }}
after i replaced it to simple html the warnings disappeared.
Also if,
Tag::setDefault('suggest', '');
is set in the controller, the warning also disappeared.its a simple workaround, but is it the expected behavior?
Beta Was this translation helpful? Give feedback.
All reactions