From: Falko M. <ma...@fa...> - 2009-07-21 21:58:32
|
Hi Martin, > It occurs to be that deriving types of all variables in php is going to > be hard or impossible without extra information. > > I see that coming from one of two sources: the user or/and phpdoc. > > Can instantsvc see the @return typing information? That's exactly the reason for using the Extended Reflection API of InstantSVC, which is underlying the CodeAnalyzer and makes use of phpDoc annotations. Thus phpCallGraph already has the information about parameter and return types. I just didn't have the time to start using it. The Extended Reflection API currently in the process of being contributed to eZ Components. One of the next releases will start to be directly linked against the latest ezcReflection component. > Otherwise we should get the user to maintain a type overriding file. This could be a nice additional feature for the reflection component. Do you have concrete ideas how such a file should look like? Cheers, Falko |