Update prepare() method on Action subclasses.
Fixes handle()-related strict warnings such as "Strict Standards: Declaration of AdminPanelAction::prepare() should be compatible with Action::prepare(array $args = Array) Ref. #190
This commit is contained in:
@@ -57,7 +57,7 @@ class ApiTimelineBookmarksAction extends ApiBareAuthAction
|
||||
*
|
||||
* @return boolean success flag
|
||||
*/
|
||||
function prepare($args)
|
||||
function prepare(array $args = array())
|
||||
{
|
||||
parent::prepare($args);
|
||||
|
||||
|
@@ -59,7 +59,7 @@ class BookmarkforurlAction extends Action
|
||||
*
|
||||
* @return boolean true
|
||||
*/
|
||||
function prepare($args)
|
||||
function prepare(array $args = array())
|
||||
{
|
||||
parent::prepare($args);
|
||||
|
||||
|
@@ -60,7 +60,7 @@ class BookmarksAction extends Action
|
||||
*
|
||||
* @return boolean success flag
|
||||
*/
|
||||
function prepare($args)
|
||||
function prepare(array $args = array())
|
||||
{
|
||||
parent::prepare($args);
|
||||
|
||||
|
Reference in New Issue
Block a user