Intellisense lost inside closure
2 posts
• Page 1 of 1
Intellisense lost inside closure
Type hinting is completely lost with variables that are scoped into a closure using the "USE" keyword:
In this example, if you do $instance->... outside the closure intellisense will populate the methods, properties, etc.. of the $instance class.
But doing the same inside the closure yields nothing.
In this example, if you do $instance->... outside the closure intellisense will populate the methods, properties, etc.. of the $instance class.
But doing the same inside the closure yields nothing.
You do not have the required permissions to view the files attached to this post.
- davidbcn
- Posts: 87
- Joined: September 10th, 2014, 3:07 am
Re: Intellisense lost inside closure
Thank you David,
We'll handle variables in closures in a future update.
In this case, the type of "$instance" depends on where $promise() is called which we do not handle currently.
We'll handle variables in closures in a future update.
In this case, the type of "$instance" depends on where $promise() is called which we do not handle currently.
Jakub Misek │ DEVSENSE s.r.o. | @misekjakub │ jakub@devsense.com │
-
Jakub Misek - Posts: 2092
- Joined: January 4th, 2012, 2:42 pm
- Location: Prague
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 75 guests