Suppress taint-check false positive blocking CI

Bug: T294441
Change-Id: I8e060fa8cb7d90b742673a93a52f449920e1d6e9
This commit is contained in:
Daimona Eaytoy
2021-10-27 17:45:18 +02:00
parent 4948b105d8
commit 005f7199ba

View File

@@ -72,6 +72,7 @@ class ApiULSSetLanguage extends ApiBase {
} }
$updateUser = $user->getInstanceForUpdate(); $updateUser = $user->getInstanceForUpdate();
// @phan-suppress-next-line SecurityCheck-SQLInjection False positive caused by T290563
$this->userOptionsManager->setOption( $updateUser, 'language', $languageCode ); $this->userOptionsManager->setOption( $updateUser, 'language', $languageCode );
// Sync the DB on post-send // Sync the DB on post-send
DeferredUpdates::addCallableUpdate( static function () use ( $updateUser ) { DeferredUpdates::addCallableUpdate( static function () use ( $updateUser ) {