aboutsummaryrefslogtreecommitdiffstats
path: root/includes/api/ApiPageSet.php
diff options
context:
space:
mode:
authorBartosz Dziewoński <matma.rex@gmail.com>2023-10-03 19:29:38 +0200
committerBartosz Dziewoński <matma.rex@gmail.com>2023-10-03 19:29:55 +0200
commite89be77475c0b656f3ad5f6c6fba88f37b9e31be (patch)
tree760c284f94082aaf71647413c5197c2670db4695 /includes/api/ApiPageSet.php
parentd9670707e6a4dafb2b8ebcefa551e9a3b289fc85 (diff)
downloadmediawikicore-e89be77475c0b656f3ad5f6c6fba88f37b9e31be.tar.gz
mediawikicore-e89be77475c0b656f3ad5f6c6fba88f37b9e31be.zip
Remove allowances for nullable `rd_interwiki` and `rd_fragment`
After the other changes in T346290 these fields can never be null. The only place that needs to handle null values is the migration script fixInconsistentRedirects.php. Bug: T346290 Change-Id: I0235c4be93b203f369b29522b54c0110ee8d61e9
Diffstat (limited to 'includes/api/ApiPageSet.php')
-rw-r--r--includes/api/ApiPageSet.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/api/ApiPageSet.php b/includes/api/ApiPageSet.php
index 16941cf10dbd..75f25907f46b 100644
--- a/includes/api/ApiPageSet.php
+++ b/includes/api/ApiPageSet.php
@@ -1257,8 +1257,8 @@ class ApiPageSet extends ApiBase {
$to = $this->titleFactory->makeTitle(
$row->rd_namespace,
$row->rd_title,
- $row->rd_fragment ?? '',
- $row->rd_interwiki ?? ''
+ $row->rd_fragment,
+ $row->rd_interwiki
);
$this->mResolvedRedirectTitles[$from] = $this->mPendingRedirectIDs[$rdfrom];
unset( $this->mPendingRedirectIDs[$rdfrom] );