/**
* Compat method allowing use of self::newKey until removed.
* @param string|null $methodKey
- * @throw InvalidArgumentException
+ * @throws InvalidArgumentException
* @return string
*/
private function getKey( $methodKey = null ) {
private function getCommentInternal( IDatabase $db = null, $key, $row, $fallback = false ) {
$row = (array)$row;
if ( array_key_exists( "{$key}_text", $row ) && array_key_exists( "{$key}_data", $row ) ) {
- $cid = isset( $row["{$key}_cid"] ) ? $row["{$key}_cid"] : null;
+ $cid = $row["{$key}_cid"] ?? null;
$text = $row["{$key}_text"];
$data = $row["{$key}_data"];
} elseif ( $this->stage === MIGRATION_OLD ) {