diff options
author | Tim Starling <tstarling@wikimedia.org> | 2022-10-21 13:26:49 +1100 |
---|---|---|
committer | Tim Starling <tstarling@wikimedia.org> | 2022-10-21 13:26:49 +1100 |
commit | 43a93d9782bee4857a8dae90ee2d1938cd75cb18 (patch) | |
tree | e17c0d33bbfddd6e8c18a342c001c4b67648a6ac /tests/phpunit/includes/EditPageTest.php | |
parent | d2b199c51762e417c75778ca9016b8dc62c1bb67 (diff) | |
download | mediawikicore-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.php | 2 |
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, |