You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by davidcorreia June 11, 2022
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?
The text was updated successfully, but these errors were encountered:
Discussed in #15991
Originally posted by davidcorreia June 11, 2022
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?
The text was updated successfully, but these errors were encountered: