Skip to main content



      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 14:56
Eclipse UserFriend
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: Mon Jul 14 11:03:12 EDT 2025

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

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

Back to the top