Bug #8554
AOP interceptor removes default value from method argument
Status: | Resolved | Start date: | 2010-08-16 | |
---|---|---|---|---|
Priority: | Must have | Due date: | ||
Assigned To: | Karsten Dambekalns | % Done: | 100% |
|
Category: | AOP | |||
Target version: | TYPO3 Flow Base Distribution - 1.0 alpha 11 | Estimated time: | 2.00 hours | |
PHP Version: | Complexity: | |||
Has patch: | Affected Flow version: |
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)
Associated revisions
[+BUGFIX] FLOW3 (AOP): AOP now correctly adds default value from method argument for array values, fixes #8554.
Change-Id: I4a65aefd3fec57b605406fabfb766c506a10499b
History
#1 Updated by Karsten Dambekalns almost 5 years ago
- Status changed from New to Accepted
- Assigned To 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
#2 Updated by Karsten Dambekalns almost 5 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 almost 5 years ago
- Status changed from Accepted to Resolved
- % Done changed from 0 to 100
Applied in changeset r4987.