From 0e2b521d6e509513da519eacfd17b3d90b65aaa9 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Sun, 12 Jul 2015 12:38:32 +0200 Subject: [PATCH] get rid of some PHP Strict Standards warnings The function declarations did not match the parent class. --- actions/apiqvitterchecklogin.php | 4 ++-- actions/apitimelinepublicandexternal.php | 8 +++----- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/actions/apiqvitterchecklogin.php b/actions/apiqvitterchecklogin.php index e682c58..9c4d461 100644 --- a/actions/apiqvitterchecklogin.php +++ b/actions/apiqvitterchecklogin.php @@ -57,9 +57,9 @@ class ApiQvitterCheckLoginAction extends ApiAction * * @return void */ - function handle($args) + protected function handle() { - parent::handle($args); + parent::handle(); if ($_SERVER['REQUEST_METHOD'] != 'POST') { $this->clientError( diff --git a/actions/apitimelinepublicandexternal.php b/actions/apitimelinepublicandexternal.php index 7b07b32..698c2e0 100644 --- a/actions/apitimelinepublicandexternal.php +++ b/actions/apitimelinepublicandexternal.php @@ -65,7 +65,7 @@ class ApiTimelinePublicAndExternalAction extends ApiPrivateAuthAction * @return boolean success flag * */ - function prepare($args) + protected function prepare(array $args=array()) { parent::prepare($args); @@ -79,13 +79,11 @@ class ApiTimelinePublicAndExternalAction extends ApiPrivateAuthAction * * Just show the notices * - * @param array $args $_REQUEST data (unused) - * * @return void */ - function handle($args) + protected function handle() { - parent::handle($args); + parent::handle(); $this->showTimeline(); }