Update type hint for CreditsAction::getAuthor()
authorSiebrand Mazeland <s.mazeland@xs4all.nl>
Mon, 30 Dec 2013 15:41:36 +0000 (16:41 +0100)
committerReedy <reedy@wikimedia.org>
Mon, 30 Dec 2013 18:03:09 +0000 (18:03 +0000)
commit8a9a1eff3e117a4f0572c88285f64472213dd962
treec4105264a15961d36124464dec1af9c1a8048c9f
parent964a1b770fcf7697dcb3f80c17711e6943fcf8c8
Update type hint for CreditsAction::getAuthor()

This function calls $page->getUserText() and $page->getTimestamp(). These
functions are not specified in the interface Page (which actually specifies
nothing at all). Page is only implemented by WikiPage and Article. Article
does not implement getUserText() and getTimestamp(). WikiPage does.
CreditsAction::getAuthor() cannot ever be given an Article, because that
would cause a fatal error "call to undefined method".

Change-Id: I0ba29622b7307845345ce645cb63b53614aaf2ab
includes/actions/CreditsAction.php