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:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user