Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP doc annotations for associative array variable (@var) #1334

Closed
fcw-wkkor opened this issue Jul 29, 2020 · 1 comment
Closed

PHP doc annotations for associative array variable (@var) #1334

fcw-wkkor opened this issue Jul 29, 2020 · 1 comment

Comments

@fcw-wkkor
Copy link

fcw-wkkor commented Jul 29, 2020

Is that possible to add feature for variable annotations for associative array? For example, $arr expected to have keys:

  • id: integer
  • name: string

in PHP:

/**
* @var array{id:int, name:string} $arr
*/
$arr = [
'id' => 1,
'name' => 'Ben'
];

Thanks.

@fcw-wkkor fcw-wkkor changed the title PHP doc annotations for variable (@var) PHP doc annotations for associative array variable (@var) Jul 29, 2020
@KapitanOczywisty
Copy link
Contributor

#249

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants