Code assist on result of array functions such as current() [message #1740722] |
Wed, 17 August 2016 14:56 |
Eclipse User |
|
|
|
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?
|
|
|
Powered by
FUDForum. Page generated in 0.06619 seconds