From 9ec81c67e8dc0016bdc4fd36eaf0bac1175d27bd Mon Sep 17 00:00:00 2001 From: Dale Davies Date: Wed, 1 Mar 2023 14:58:39 +0000 Subject: [PATCH] Fix incorrect order of arguments in Cache::save() --- jumpapp/classes/Cache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jumpapp/classes/Cache.php b/jumpapp/classes/Cache.php index 1a93b58..ba0658a 100644 --- a/jumpapp/classes/Cache.php +++ b/jumpapp/classes/Cache.php @@ -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);