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)

#1

Updated by Karsten Dambekalns over 10 years ago

  • Status changed from New to Accepted
  • Assignee set to Karsten Dambekalns
  • Target version set to 1.0 alpha 11
  • Start date changed from 2010-06-29 to 2010-08-16
  • Estimated time set to 2.00 h
#2

Updated by Karsten Dambekalns over 10 years ago

Well, default values are put into proxy classes, just not for default values that are of type array... :)

#3

Updated by Karsten Dambekalns over 10 years ago

  • Status changed from Accepted to Resolved
  • % Done changed from 0 to 100

Applied in changeset r4987.

Also available in: Atom PDF