Author Topic: Autocomplete misses variables from foreach in PHP?  (Read 1965 times)

DanK

  • Junior Community Member
  • Posts: 2
  • Hero Points: 0
Autocomplete misses variables from foreach in PHP?
« on: February 06, 2009, 07:10:15 pm »
SlickEdit is frequently autocompleting to the wrong variable when I'm writing in PHP. My code looks like this:

Code: [Select]
function Blah($transactions) {
  foreach ($transactions as $transaction) {
    // problem here
  }
}

If at '// problem here' (but not in the comment...), you type 'echo "$transaction";', SlickEdit automatically switches it to $transactions. Why? How can I turn this off? (I think it doesn't realize $transaction is a valid variable in scope...)

Thanks,
Dan