X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Flogging%2FLogEntry.php;h=e7095f0b399814c7ee69ea113fbae31355269a4a;hb=1326bfc813fc789935088bea572f11cca83ce8d5;hp=21864eefbfc4cb08b8abaab995c243614d46cc1d;hpb=fcf58d766db9228a4c4e79c74a0fe1b9340a385d;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/logging/LogEntry.php b/includes/logging/LogEntry.php index 21864eefbf..e7095f0b39 100644 --- a/includes/logging/LogEntry.php +++ b/includes/logging/LogEntry.php @@ -28,6 +28,8 @@ * @since 1.19 */ +use Wikimedia\Rdbms\IDatabase; + /** * Interface for log entries. Every log entry has these methods. * @@ -428,7 +430,7 @@ class ManualLogEntry extends LogEntryBase { /** @var int ID of the log entry */ protected $id; - /** @var Can this log entry be patrolled? */ + /** @var bool Can this log entry be patrolled? */ protected $isPatrollable = false; /** @var bool Whether this is a legacy log entry */ @@ -632,7 +634,7 @@ class ManualLogEntry extends LogEntryBase { } $dbw->insert( 'logging', $data, __METHOD__ ); - $this->id = !is_null( $id ) ? $id : $dbw->insertId(); + $this->id = $dbw->insertId(); $rows = []; foreach ( $relations as $tag => $values ) {