Bug #8554

AOP interceptor removes default value from method argument

Added by Bastian Waidelich over 10 years ago. Updated over 10 years ago.

Status:
Resolved
Priority:
Must have
Category:
AOP
Start date:
2010-08-16
Due date:
% Done:

100%

Estimated time:
2.00 h
PHP Version:
Has patch:
Complexity:

Description

When activating an AOP interceptor for a method

public function indexAction(array $someArray = array)

I'm receiving following runtime notice:
Declaration of F3\Viewhelpertest\Controller\StandardController_AOPProxy_Development::indexAction() should be compatible with that of F3\Viewhelpertest\Controller\StandardController::indexAction()

The reason is, that in the AOP proxy class the declaration looks like

public function indexAction(array $someArray)

Also available in: Atom PDF