You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment the plugin cannot detect the type of a variable inside an anonymous function if it was declared outside the anonymous function and then imported in the "use" part of the function.
Code to reproduce:
<?phpuseDateTime;
class TypesInClosures
{
publicfunctionfoo()
{
$foo = newDateTime();
$foo-> # <= Autocomplete works here$bar = function () use ($foo) {
$foo-> # <= Autocomplete does NOT work here, but it should
};
}
}
The text was updated successfully, but these errors were encountered:
At the moment the plugin cannot detect the type of a variable inside an anonymous function if it was declared outside the anonymous function and then imported in the "use" part of the function.
Code to reproduce:
The text was updated successfully, but these errors were encountered: