Updated method of string interpolation

In prep for future PHP changes as per RFC
https://wiki.php.net/rfc/deprecate_dollar_brace_string_interpolation
This commit is contained in:
Dan Brown 2022-05-05 09:33:25 +01:00
parent 93ef8c97b6
commit dbefda055f
No known key found for this signature in database
GPG Key ID: 46D9F943C24A2EF9
2 changed files with 2 additions and 2 deletions

View File

@ -360,7 +360,7 @@ class SearchRunner
/** @var Connection $connection */ /** @var Connection $connection */
$connection = $query->getConnection(); $connection = $query->getConnection();
$tagValue = (float) trim($connection->getPdo()->quote($tagValue), "'"); $tagValue = (float) trim($connection->getPdo()->quote($tagValue), "'");
$query->whereRaw("value ${tagOperator} ${tagValue}"); $query->whereRaw("value {$tagOperator} {$tagValue}");
} else { } else {
$query->where('value', $tagOperator, $tagValue); $query->where('value', $tagOperator, $tagValue);
} }

View File

@ -83,7 +83,7 @@ class SettingController extends Controller
$this->logActivity(ActivityType::SETTINGS_UPDATE, $category); $this->logActivity(ActivityType::SETTINGS_UPDATE, $category);
$this->showSuccessNotification(trans('settings.settings_save_success')); $this->showSuccessNotification(trans('settings.settings_save_success'));
return redirect("/settings/${category}"); return redirect("/settings/{$category}");
} }
protected function ensureCategoryExists(string $category): void protected function ensureCategoryExists(string $category): void