Skip to content

Commit df331a7

Browse files
committed
Fix static analysis errors in Data class method chaining
1 parent 6709d00 commit df331a7

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

src/Data.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public function __construct($_parent = null, $smarty = null, $name = null) {
100100
* @param boolean $nocache if true any output of this variable will be not cached
101101
* @param int $scope one of self::SCOPE_* constants
102102
*
103-
* @return Data current Data (or Smarty or \Smarty\Template) instance for
103+
* @return $this current Data (or Smarty or \Smarty\Template) instance for
104104
* chaining
105105
*/
106106
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)
162162
* @param bool $nocache if true any output of this variable will
163163
* be not cached
164164
*
165-
* @return Data
165+
* @return $this
166166
* @api Smarty::append()
167167
*/
168168
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
198198
* @param mixed $value the value to assign
199199
* @param boolean $nocache if true any output of this variable will be not cached
200200
*
201-
* @return Data
201+
* @return $this
202202
* @deprecated since 5.0
203203
*/
204204
public function assignGlobal($varName, $value = null, $nocache = false)
@@ -350,7 +350,7 @@ public function getSmarty()
350350
*
351351
* @param string|array $tpl_var the template variable(s) to clear
352352
*
353-
* @return Data
353+
* @return $this
354354
*
355355
* @api Smarty::clearAssign()
356356
*/
@@ -369,7 +369,7 @@ public function clearAssign($tpl_var)
369369
/**
370370
* clear all the assigned template variables.
371371
*
372-
* @return Data
372+
* @return $this
373373
*
374374
* @api Smarty::clearAllAssign()
375375
*/
@@ -384,7 +384,7 @@ public function clearAllAssign()
384384
*
385385
* @param string|null $name variable name or null
386386
*
387-
* @return Data
387+
* @return $this
388388
*
389389
* @api Smarty::clearConfig()
390390
*/
@@ -456,7 +456,7 @@ public function getConfigVars($varname = null)
456456
* @param mixed $sections array of section names, single
457457
* section or null
458458
459-
* @returns $this
459+
* @return $this
460460
* @throws \Exception
461461
*
462462
* @api Smarty::configLoad()

0 commit comments

Comments
 (0)