code completition on (runtime created) objects? |
Site Admin
|
Actually I put this on the FAQ some time ago. http://forum.nusphere.com/tip-type-hints-t1563.html
Regarding your code, if your factory returns instances of one class, no type hints are requried. Phped 4048 is able to recognize everything in this case, like below: If your factory may return instances of different classes, depending for example on the arguments passed to ::Create(), you may want to add type hint like below: |
||||||||||||
|
|
Thanks for the tips. I tried to search the Forum but I might have used the wrong search terms. Happy holidays, Husker |
||||||||||||||
|
code completition on (runtime created) objects? |
|
||
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