Bug #38216

Static method calls in reflected classes refer to _Original class

Added by Christian Jul Jensen over 9 years ago. Updated almost 9 years ago.

Status:
Needs Feedback
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2012-06-20
Due date:
% Done:

0%

Estimated time:
PHP Version:
Has patch:
No
Complexity:

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 members.New2011-10-17

Actions
#1

Updated by Adrian Föder over 9 years ago

  • Status changed from New to Needs Feedback

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

Also available in: Atom PDF