From 4701a65c0817ed6250d9e94c9007f48f61891346 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Tue, 3 Jan 2012 16:18:14 +0000 Subject: [PATCH] Update method signatures in FakeTitle to avoid E_STRICTs --- includes/FakeTitle.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/includes/FakeTitle.php b/includes/FakeTitle.php index d32c9369b3..f9e19b109a 100644 --- a/includes/FakeTitle.php +++ b/includes/FakeTitle.php @@ -32,8 +32,8 @@ class FakeTitle extends Title { function getFullURL( $query = '', $variant = false ) { $this->error(); } function getLocalURL( $query = '', $variant = false ) { $this->error(); } function getLinkURL( $query = array(), $variant = false ) { $this->error(); } - function escapeLocalURL( $query = '' ) { $this->error(); } - function escapeFullURL( $query = '' ) { $this->error(); } + function escapeLocalURL( $query = '', $query2 = false ) { $this->error(); } + function escapeFullURL( $query = '', $query2 = false ) { $this->error(); } function getInternalURL( $query = '', $variant = false ) { $this->error(); } function getEditURL() { $this->error(); } function getEscapedText() { $this->error(); } @@ -42,9 +42,9 @@ class FakeTitle extends Title { function isProtected( $action = '' ) { $this->error(); } function isConversionTable() { $this->error(); } function userIsWatching() { $this->error(); } - function quickUserCan( $action ) { $this->error(); } - function isNamespaceProtected() { $this->error(); } - function userCan( $action, $doExpensiveQueries = true ) { $this->error(); } + function quickUserCan( $action, $user = null ) { $this->error(); } + function isNamespaceProtected( User $user ) { $this->error(); } + function userCan( $action, $user = null, $doExpensiveQueries = true ) { $this->error(); } function getUserPermissionsErrors( $action, $user, $doExpensiveQueries = true, $ignoreErrors = array() ) { $this->error(); } function updateTitleProtection( $create_perm, $reason, $expiry ) { $this->error(); } function deleteTitleProtection() { $this->error(); } @@ -101,7 +101,7 @@ class FakeTitle extends Title { function getNextRevisionID( $revId, $flags=0 ) { $this->error(); } function getFirstRevision( $flags=0 ) { $this->error(); } function isNewPage() { $this->error(); } - function getEarliestRevTime() { $this->error(); } + function getEarliestRevTime( $flags = 0 ) { $this->error(); } function countRevisionsBetween( $old, $new ) { $this->error(); } function equals( Title $title ) { $this->error(); } function exists() { $this->error(); } -- 2.20.1