aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/EditPageTest.php
diff options
context:
space:
mode:
authorTim Starling <tstarling@wikimedia.org>2022-10-21 13:26:49 +1100
committerTim Starling <tstarling@wikimedia.org>2022-10-21 13:26:49 +1100
commit43a93d9782bee4857a8dae90ee2d1938cd75cb18 (patch)
treee17c0d33bbfddd6e8c18a342c001c4b67648a6ac /tests/phpunit/includes/EditPageTest.php
parentd2b199c51762e417c75778ca9016b8dc62c1bb67 (diff)
downloadmediawikicore-43a93d9782bee4857a8dae90ee2d1938cd75cb18.tar.gz
mediawikicore-43a93d9782bee4857a8dae90ee2d1938cd75cb18.zip
Use the null coalescing assignment operator
Available since PHP 7.4. Automated search, manual replacement. Change-Id: Ibb163141526e799bff08cfeb4037b52144bb39fa
Diffstat (limited to 'tests/phpunit/includes/EditPageTest.php')
-rw-r--r--tests/phpunit/includes/EditPageTest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/phpunit/includes/EditPageTest.php b/tests/phpunit/includes/EditPageTest.php
index 79ef9b368cd7..307e8f5c2cba 100644
--- a/tests/phpunit/includes/EditPageTest.php
+++ b/tests/phpunit/includes/EditPageTest.php
@@ -677,7 +677,7 @@ hello
$elmosEdit['wpSummary'] = 'Elmo\'s edit';
$bertasEdit['wpSummary'] = 'Bertas\'s edit';
- $newEdit['wpSummary'] = $newEdit['wpSummary'] ?? 'new edit';
+ $newEdit['wpSummary'] ??= 'new edit';
// first edit: Elmo
$page = $this->assertEdit( __METHOD__, null, 'Elmo', $elmosEdit,