[OutputPage] Hoist "null Title" checks up a level
commitf61760614d5704458688d65f956443ebd4a44f11
authorC. Scott Ananian <cscott@cscott.net>
Fri, 9 Feb 2024 20:23:21 +0000 (9 15:23 -0500)
committerC. Scott Ananian <cscott@cscott.net>
Wed, 15 May 2024 15:25:36 +0000 (15 11:25 -0400)
tree241abbd55549ba0bd66d27619e890cb83a004358
parent189d41676f27744d650d95caf2334e915a04dabe
[OutputPage] Hoist "null Title" checks up a level

Add strict types to private parsing-related methods
OutputPage::parseInternal() and OutputPage::addWikiTextTitleInternal()
and in the process hoist the "null Titles are not allowed" assertion
up a level to the callers.

Adjust some phan suppressions after this change.

Change-Id: If828d9ffa1edc292a1aca3eb6fe36daffa100bd4
includes/Output/OutputPage.php
includes/parser/CoreTagHooks.php
includes/parser/Parser.php
tests/phpunit/includes/Output/OutputPageTest.php