Issue when creating an array in an function

Hello - I am attempting to create an array in a function in an included file.  All other variables in the function work properly and are displayed using the hover function and in the variables window at the bottom of the screen.  The exact same syntax works in functions that are in the main php file (e.g. not included). Is this a bug with PHPStorm? I am using as simple a syntax as possible - such as examples from PHP.NET:

 
$array_test = array("foo", "bar", "hello", "world"); 
 
When this is entered in PHPStorm, hovering over $arrays_test shows nothing, yet hovering over the word array, it shows the array info.  Yet $array_test shows nothing nor does the variable show in the Variables window at the bottom of the screen.
 
Any help is very much appreciated - Thank you.
2 comments
Comment actions Permalink

Further research has shown that even if the function is contained within the main file (e.g. not included), it still has the same result (i.e. the array is not created - or at least not accessible to PHPStorm). 

0
Comment actions Permalink

This issue is wider in scope.  I am creating another Post for that issue and discontinuing any further updates on this post.

0

Please sign in to leave a comment.