From: Neil Kandalgaonkar Date: Wed, 20 Apr 2011 00:25:50 +0000 (+0000) Subject: make SpecialUpload::userCanExecute signature compatible with SpecialPage, which now... X-Git-Tag: 1.31.0-rc.0~30692 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=f45ae3d68f2869ec7235d6fcbfb6191d6a6cb1b7;p=lhc%2Fweb%2Fwiklou.git make SpecialUpload::userCanExecute signature compatible with SpecialPage, which now uses type hinting --- diff --git a/includes/specials/SpecialUpload.php b/includes/specials/SpecialUpload.php index 5aaa0f14e2..82863403fb 100644 --- a/includes/specials/SpecialUpload.php +++ b/includes/specials/SpecialUpload.php @@ -140,7 +140,7 @@ class SpecialUpload extends SpecialPage { * @param $user User object * @return Boolean */ - public function userCanExecute( $user ) { + public function userCanExecute( User $user ) { return UploadBase::isEnabled() && parent::userCanExecute( $user ); }