Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Code assist on result of array functions such as current()
Code assist on result of array functions such as current() [message #1740722] Wed, 17 August 2016 18:56
Filipus Klutiero is currently offline Filipus KlutieroFriend
Messages: 13
Registered: July 2015
Junior Member
Hi,
We previously had get*() functions returning arrays of objects which used sequential keys. I changed some so that the keys are now non-sequential, so $objects[0] no longer works even if $objects contains at least 1 object.

Before this change, Eclipse managed to provide useful code assist when accessing a specific object, suggesting the object's methods. Unfortunately, this is no longer the case now that we have to use array functions which may return false, such as current(). With current($objects), Eclipse seems to consider the result boolean and offers no methods. This is understandable, but quite a "regression".

Is it possible to code differently so that Eclipse can offer code assist on these arrays again, or can Eclipse be configured to offer the object's methods, even if the array functions might return false?
Previous Topic:CFEclipse, how to connect to coldfusion server using RDS ?
Next Topic:how to run eclipse 4.2.1 for php
Goto Forum:
  


Current Time: Tue Jul 17 09:45:38 GMT 2018

Powered by FUDForum. Page generated in 0.01641 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top