Avoid a few overly complicated is_null() checks
authorThiemo Kreuz <thiemo.kreuz@wikimedia.de>
Mon, 11 Mar 2019 09:29:20 +0000 (10:29 +0100)
committerThiemo Kreuz <thiemo.kreuz@wikimedia.de>
Mon, 11 Mar 2019 09:29:20 +0000 (10:29 +0100)
commitd1a497a9f4c2a5c50914e19aee1e97f849cef6ca
tree707cbf1500f137771e5745fb7eef427c9291a0ef
parent278ac40e9609b0b226a85e020f5e574054e1d78f
Avoid a few overly complicated is_null() checks

We can use the ?? syntax introduced with PHP 7.0 because it is already
supported by HHVM, even when HHVM is set to be compatible with PHP 5.6.

This was inspired by Ib117e05.

Change-Id: If980839fe6f86f2b4e86bbe99905a796e4708c7c
includes/PathRouter.php
includes/Revision/MainSlotRoleHandler.php
includes/Title.php
includes/api/ApiParse.php
includes/page/Article.php
includes/page/WikiPage.php
includes/specials/SpecialEmailuser.php
includes/specials/SpecialMovepage.php
includes/specials/SpecialProtectedpages.php
tests/phpunit/includes/content/WikitextContentTest.php
tests/phpunit/includes/page/WikiPageDbTestBase.php