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
Phalcon\Http\Response::setContent(): Passing null to parameter #1 ($content) of type string is deprecated
I don't have an example, but it happens when I'm redirecting the user before rendering the view (using Dispatcher's events). Most probably because of view->disable(). But in the end, view->content should not be initialized with NULL.
Expected behavior
View should be reset as expected.
Details
Phalcon version: 5.2.2 (but 5.2.4 has the same code)
PHP Version: 8.2.7
Operating System: Linux Debian stable
Installation type: PECL
Zephir version (if any): -
Server: Lighttpd
The text was updated successfully, but these errors were encountered:
Describe the bug
Reset of view doesn't use the default class value of
->content
(= empty string), which will raise an error on PHP 8.2To Reproduce
Here the
content
is set toNULL
instead of an empty string: https://github.com/phalcon/cphalcon/blob/5.0.x/phalcon/Mvc/View.zep#L771Which will raise:
I don't have an example, but it happens when I'm redirecting the user before rendering the view (using Dispatcher's events). Most probably because of
view->disable()
. But in the end,view->content
should not be initialized withNULL
.Expected behavior
View should be reset as expected.
Details
The text was updated successfully, but these errors were encountered: