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
/** * @param array{ * name: string, // some other string here * age: int // some integer over there * } $myParam */functiontest(array$myParam)
{
$myParam['nam'];
}
Describe the solution you'd like
It would be nice to be able to add inline comments (multiline comments are not possible because of PHP, see additional context) to keys, empowering documentation at a glance when having a look at the array shape. Ideally the inline comment could be displayed in the autocomplete window with the type, but this would be more of a "nice to have".
Feature description or problem with existing feature
Currently, the following code autocompletes
$myParam
key:Unfortunately, adding inline comments breaks autocomplete:
Describe the solution you'd like
It would be nice to be able to add inline comments (multiline comments are not possible because of PHP, see additional context) to keys, empowering documentation at a glance when having a look at the array shape. Ideally the inline comment could be displayed in the autocomplete window with the type, but this would be more of a "nice to have".
Additional context
config()
function and array shapes: [FrameworkBundle] Add theconfig()
function symfony/symfony#58771The text was updated successfully, but these errors were encountered: