From 110c88625fa78f1d2c43effc1db38ee093c3dbad Mon Sep 17 00:00:00 2001 From: ghuniyu <20877422+ghuniyu@users.noreply.github.com> Date: Fri, 25 Dec 2020 15:34:11 +0700 Subject: [PATCH] Moving optional variables for PHP 8 --- src/Controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Controller.php b/src/Controller.php index d0b79a84..543e586b 100644 --- a/src/Controller.php +++ b/src/Controller.php @@ -103,7 +103,7 @@ public function postEdit($group = null) } } - public function postDelete($group = null, $key) + public function postDelete($key, $group = null) { if(!in_array($group, $this->manager->getConfig('exclude_groups')) && $this->manager->getConfig('delete_enabled')) { Translation::where('group', $group)->where('key', $key)->delete();