Autocomplete on an object within an array

If I have a multidimensional array, where one element in each array is an object, how do I enable auto complete on object when working with the array element that contains it?

 

$array = array(

1 => array(

‘name’ => ‘User name’,

‘attributes’ => Attributes Object

),

2 => array(

‘name’ => ‘User name’,

‘attributes’ => Attributes Object

),

)

 

I want to be able to do something like this:

foreach ($array AS $user)

{

// I want to autocomplete/suggest methods from the Attributes class.

           $user[‘attributes’]->getAttributes();

}

0
Avatar
Permanently deleted user

Hello,

Looks like https://youtrack.jetbrains.com/issue/WI-3423 - please vote for it with thumb up button. See more information on working with tracker at https://intellij-support.jetbrains.com/hc/en-us/articles/207241135-How-to-follow-YouTrack-issues-and-receive-notifications .

1

请先登录再写评论。