From df331a7d7dc89bf58a9cdf922e0e88fc64abc33f Mon Sep 17 00:00:00 2001 From: h-marumoto Date: Wed, 14 Jan 2026 17:45:52 +0900 Subject: [PATCH] Fix static analysis errors in Data class method chaining --- src/Data.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Data.php b/src/Data.php index 6ae823d8c..bb360a1b4 100644 --- a/src/Data.php +++ b/src/Data.php @@ -100,7 +100,7 @@ public function __construct($_parent = null, $smarty = null, $name = null) { * @param boolean $nocache if true any output of this variable will be not cached * @param int $scope one of self::SCOPE_* constants * - * @return Data current Data (or Smarty or \Smarty\Template) instance for + * @return $this current Data (or Smarty or \Smarty\Template) instance for * chaining */ public function assign($tpl_var, $value = null, $nocache = false, $scope = null) @@ -162,7 +162,7 @@ public function assign($tpl_var, $value = null, $nocache = false, $scope = null) * @param bool $nocache if true any output of this variable will * be not cached * - * @return Data + * @return $this * @api Smarty::append() */ public function append($tpl_var, $value = null, $merge = false, $nocache = false) @@ -198,7 +198,7 @@ public function append($tpl_var, $value = null, $merge = false, $nocache = false * @param mixed $value the value to assign * @param boolean $nocache if true any output of this variable will be not cached * - * @return Data + * @return $this * @deprecated since 5.0 */ public function assignGlobal($varName, $value = null, $nocache = false) @@ -350,7 +350,7 @@ public function getSmarty() * * @param string|array $tpl_var the template variable(s) to clear * - * @return Data + * @return $this * * @api Smarty::clearAssign() */ @@ -369,7 +369,7 @@ public function clearAssign($tpl_var) /** * clear all the assigned template variables. * - * @return Data + * @return $this * * @api Smarty::clearAllAssign() */ @@ -384,7 +384,7 @@ public function clearAllAssign() * * @param string|null $name variable name or null * - * @return Data + * @return $this * * @api Smarty::clearConfig() */ @@ -456,7 +456,7 @@ public function getConfigVars($varname = null) * @param mixed $sections array of section names, single * section or null - * @returns $this + * @return $this * @throws \Exception * * @api Smarty::configLoad()