Intellisense lost inside closure
Posted: January 16th, 2017, 3:39 pm
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.