Use PHP 5.6 constant expressions for some bitfield constants
authorBartosz Dziewoński <matma.rex@gmail.com>
Fri, 6 Oct 2017 19:10:53 +0000 (21:10 +0200)
committerJames D. Forrester <jforrester@wikimedia.org>
Thu, 31 May 2018 01:05:18 +0000 (18:05 -0700)
commit52b0799e8deca45ba345eb6db4f173a20bbe44fa
tree05b18cb17f1e3a7786a1067ccd54a131ffff6262
parentb6e8e6b83267e1357bb04edb7976f1a11ee10a5b
Use PHP 5.6 constant expressions for some bitfield constants

I searched the entire codebase for 'const' and looked for things
that looked suspiciously like manually calculated bitfield unions.
As of PHP 5.6, we can have them calculated automatically when
defining constants.

Change-Id: I7d971d1a63f8916db2f8f6c053c7dd0a13add92d
includes/Storage/RevisionRecord.php
includes/api/ApiResult.php
includes/dao/IDBAccessObject.php
includes/logging/LogPage.php
includes/parser/Preprocessor.php
tests/phpunit/suites/ParserTestTopLevelSuite.php