Skip to content

Commit

Permalink
Fix incorrect order of arguments in Cache::save()
Browse files Browse the repository at this point in the history
  • Loading branch information
daledavies committed Mar 1, 2023
1 parent a58016b commit 9ec81c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jumpapp/classes/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ function (&$dependencies) use ($callback, $cachename) {
* @param mixed $data
* @return void
*/
public function save(string $cachename, ?string $key = 'default', mixed $data): mixed {
public function save(string $cachename, mixed $data, ?string $key = 'default'): mixed {
$this->init_cache($cachename, $key);
$dependencies = [$this->caches[$cachename]['expirationtype'] => $this->caches[$cachename]['expirationparams']];
return $this->caches[$cachename]['cache'][$key]->save($cachename.'/'.$key, $data, $dependencies);
Expand Down

0 comments on commit 9ec81c6

Please sign in to comment.