![]() |
![]() | Code completion for singleton pattern *resolved* | ![]() |
![]() |
![]() | ![]() |
Site Admin
![]() |
![]() |
type of object instance returned by that class is known only at run-time and therefore to get code completion working you need to add type hint.
Read FAQ topic related to type hints: http://forum.nusphere.com/tip-type-hints-t1563.html |
|||||||||||
_________________ The PHP IDE team
|
![]() |
![]() | ![]() |
![]() |
![]() |
Thanks.
|
|||||||||||
|
![]() |
![]() | ![]() |
![]() |
![]() |
that doesn't seem to address the original problem, which i am now running in to. in class tm, i have a singleton generator. $newobj = tm::generate_singleton('user');. at this point, $newobj contains an object of class 'user'. however, phped thinks that $newobj is in the tm class instead. i can't use the phpdoc "returns" syntax since the object type varies depending on how the function is called. is there any resolution for this? |
|||||||||||||
|
![]() |
![]() | ![]() |
![]() |
![]() |
|
|||||||||||||
|
![]() |
![]() | Code completion for singleton pattern *resolved* | ![]() |
|
||
![]() |
![]() |
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
