From b4b88aced258c944914cbe5adeae14898e9987d2 Mon Sep 17 00:00:00 2001 From: Rudi Servo Date: Mon, 25 Sep 2023 14:52:53 +0000 Subject: [PATCH] View::reset() sets content to null instead of emptry string --- CHANGELOG-5.0.md | 1 + phalcon/Mvc/View.zep | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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 = [];