Deprecate Block::isValid method
authorThalia <thalia.e.chan@googlemail.com>
Wed, 27 Mar 2019 16:36:30 +0000 (16:36 +0000)
committerThalia <thalia.e.chan@googlemail.com>
Wed, 27 Mar 2019 22:56:05 +0000 (22:56 +0000)
commitcce24b40787a3d0aabbadeae664d03c3f814e259
tree933747f0507ee106c1939b71310cf7020e29ee12
parent8a0f5676c92c486656b260c448c8e0284e5321ca
Deprecate Block::isValid method

Block::isValid checks whether the block target equals null. It seems to
have been unused since commit 40a926ab2c566052eefd08c36f246d6b5321afc5.
It was called from Block::newFromDB, which was removed in favour of
Block::newFromTarget, which has its own logic for checking the target.

Since the method is public, it should be deprecated before removal.

Change-Id: Ibcfb377a382f55e80933836960be7e3589908390
RELEASE-NOTES-1.33
includes/Block.php