Warning after extract() function

I use extract() command. But after I extract array, phpStorm gives warnings for new veriables.
It says that new variables are undefined.
How can I fix this?

Comment actions Permalink

Hi there,

A simple code example to play around with will be very useful.

But generally speaking (accordingly to http://youtrack.jetbrains.com/issue/WI-11207) the solution is to create PHPDoc comment that will explain what those variables are (what type).

Comment actions Permalink

Oh my bad. Thank you very much :)


Please sign in to leave a comment.