Bug #38216

Static method calls in reflected classes refer to _Original class

Added by Christian Jul Jensen about 3 years ago. Updated over 2 years ago.

Status:Needs Feedback Start date:2012-06-20
Priority:Should have Due date:
Assigned To:- % Done:

0%

Category:-
Target version:-
PHP Version: Complexity:
Has patch:No Affected Flow version:Git master

Description

Static method calls in reflected classes refers to the original class rather than the proxy. This gives issues in cases where "self" is used. fx. in Singleton style create methods.


Related issues

related to TYPO3.Flow - Bug #31002: Generated __sleep method handles static properties as mem... New 2011-10-17

History

#1 Updated by Adrian Föder about 3 years ago

  • Status changed from New to Needs Feedback

Christian, in these cases you have to use the "static" keyword, i.e. static::doSomething().

#2 Updated by Karsten Dambekalns over 2 years ago

  • Affected Flow version changed from Git 1.2 (master) to Git master

Also available in: Atom PDF