From: Dan Brown Date: Thu, 5 May 2022 08:33:25 +0000 (+0100) Subject: Updated method of string interpolation X-Git-Tag: v22.04.2~1^2~8 X-Git-Url: http://source.bookstackapp.com/bookstack/commitdiff_plain/dbefda055f536ee3803b59cb1fa2b2fc667bf1bd Updated method of string interpolation In prep for future PHP changes as per RFC https://wiki.php.net/rfc/deprecate_dollar_brace_string_interpolation --- diff --git a/app/Entities/Tools/SearchRunner.php b/app/Entities/Tools/SearchRunner.php index a0a44f3a5..a591914f3 100644 --- a/app/Entities/Tools/SearchRunner.php +++ b/app/Entities/Tools/SearchRunner.php @@ -360,7 +360,7 @@ class SearchRunner /** @var Connection $connection */ $connection = $query->getConnection(); $tagValue = (float) trim($connection->getPdo()->quote($tagValue), "'"); - $query->whereRaw("value ${tagOperator} ${tagValue}"); + $query->whereRaw("value {$tagOperator} {$tagValue}"); } else { $query->where('value', $tagOperator, $tagValue); } diff --git a/app/Http/Controllers/SettingController.php b/app/Http/Controllers/SettingController.php index 9e9e6c690..f5e48ca4c 100644 --- a/app/Http/Controllers/SettingController.php +++ b/app/Http/Controllers/SettingController.php @@ -83,7 +83,7 @@ class SettingController extends Controller $this->logActivity(ActivityType::SETTINGS_UPDATE, $category); $this->showSuccessNotification(trans('settings.settings_save_success')); - return redirect("/settings/${category}"); + return redirect("/settings/{$category}"); } protected function ensureCategoryExists(string $category): void