Revert "Parser: Add Title type hints"
authorFomafix <fomafix@googlemail.com>
Mon, 14 Oct 2019 18:52:19 +0000 (20:52 +0200)
committerReedy <reedy@wikimedia.org>
Fri, 18 Oct 2019 20:54:23 +0000 (20:54 +0000)
commit9ddd146c262806e993ea66994f367a0a795e762d
treec6e28fdd0a4f7c65ad369f08f399245ad89e0f78
parente65f8ac5110804067366f9f239c13f4f29b66c3d
Revert "Parser: Add Title type hints"

This change reverts most of commit 3dff713fe4.

Especially the return type hints for getTitle() and Title() are reduced
to allow the type null as return value, because SematicMediaWiki uses
this by

$this->parser->getTitle() instanceof Title

to check if there is a valid Title object.

The parameter type hints for setTitle() and Title() are kept.

Bug: T235392
Change-Id: I72ac1c9d37059876dbc7cd38158e7abd212da8fe
(cherry picked from commit d91a136ae7b53f07bac62aba944f5a7ba1ccd7ec)
includes/parser/Parser.php