refactor: treat sprintf as native function

This breaks the pint CI currently. This is probably due to the next version of php (8.4) adding opcache optimizations to sprintf and our config requiring pre-slashing native functions.
This commit is contained in:
Roardom
2024-08-09 21:08:26 +00:00
parent 7b309cfcb5
commit 64a60089d9
59 changed files with 154 additions and 154 deletions
+3 -3
View File
@@ -150,11 +150,11 @@ class RequestController extends Controller
// Auto Shout
if ($torrentRequest->anon == 0) {
$this->chatRepository->systemMessage(
sprintf('[url=%s]%s[/url] has created a new request [url=%s]%s[/url]', href_profile($user), $user->username, href_request($torrentRequest), $torrentRequest->name)
\sprintf('[url=%s]%s[/url] has created a new request [url=%s]%s[/url]', href_profile($user), $user->username, href_request($torrentRequest), $torrentRequest->name)
);
} else {
$this->chatRepository->systemMessage(
sprintf('An anonymous user has created a new request [url=%s]%s[/url]', href_request($torrentRequest), $torrentRequest->name)
\sprintf('An anonymous user has created a new request [url=%s]%s[/url]', href_request($torrentRequest), $torrentRequest->name)
);
}
@@ -248,6 +248,6 @@ class RequestController extends Controller
$torrentRequest->delete();
return to_route('requests.index')
->withSuccess(sprintf(trans('request.deleted'), $torrentRequest->name));
->withSuccess(\sprintf(trans('request.deleted'), $torrentRequest->name));
}
}