1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-08 06:06:45 +02:00

feat(entries): return $this instead of void in setStorage() method in Entries API. #533

This commit is contained in:
Awilum
2020-12-28 01:10:35 +03:00
parent 7fdf75320b
commit 1daffb5361

View File

@@ -418,11 +418,13 @@ class Entries
*
* @access public
*
* @return array Updated storage.
* @return self Returns instance of The Entries class.
*/
public function setStorage(?string $key, $value): void
public function setStorage(?string $key, $value): self
{
$this->storage = arrays($this->storage)->set($key, $value)->toArray();
return $this;
}
/**