Remove indirect calls to IDBAccessObject::READ_* constants

We are getting rid of the schema of implementing this interface and
calling self::READ_* constants, it's confusing, inconsistent, prone to
clashes and isn't really useful for non-ORM systems (which we are not)

Bug: T354194
Change-Id: Ibd6d2e0da862e3160e7b90663b0556451b1ede87
这个提交包含在:
gerritbot 2024-01-26 13:57:52 +00:00 提交者 Ladsgroup
父节点 3f6369a724
当前提交 26f9de248c

查看文件

@ -10,6 +10,7 @@
namespace MediaWiki\Extension\NewUserMessage;
use GenericParameterJob;
use IDBAccessObject;
use Job;
use MediaWiki\User\User;
@ -29,7 +30,7 @@ class NewUserMessageJob extends Job implements GenericParameterJob {
public function run() {
$user = User::newFromId( $this->params['userId'] );
$user->load( $user::READ_LATEST );
$user->load( IDBAccessObject::READ_LATEST );
if ( !$user->getId() ) {
return false;
}