diff --git a/CHANGELOG-5.0.md b/CHANGELOG-5.0.md index e3be7feee9..396b66383e 100644 --- a/CHANGELOG-5.0.md +++ b/CHANGELOG-5.0.md @@ -4,6 +4,7 @@ ### Fixed - Model Annotation strategy did not work with empty_string [#16426] (https://github.com/phalcon/cphalcon/issues/16426) +- View::reset() sets content to null instead of default empty string [#16437] (https://github.com/phalcon/cphalcon/issues/16437) ## [5.3.1](https://github.com/phalcon/cphalcon/releases/tag/v5.3.1) (2023-09-12) diff --git a/phalcon/Mvc/View.zep b/phalcon/Mvc/View.zep index ca633b81e0..95b0e5fd3c 100644 --- a/phalcon/Mvc/View.zep +++ b/phalcon/Mvc/View.zep @@ -768,7 +768,7 @@ class View extends Injectable implements ViewInterface, EventsAwareInterface let this->disabled = false, this->engines = false, this->renderLevel = self::LEVEL_MAIN_LAYOUT, - this->content = null, + this->content = "", this->templatesBefore = [], this->templatesAfter = [];