"Use of unassigned variable"

PHP Tools [?] extends Visual Studio with set of advanced features to work more efficiently with PHP code.

"Use of unassigned variable"

Postby uwe » November 3rd, 2016, 12:51 pm

I do have this code:

Image

This code works for me.

In my opinion, the green underline of $folder saying that is is unassigned is wrong.

My question:

Can you tell me whether this is actually a false positive, or whether I'm wrong here?
uwe
 
Posts: 21
Joined: October 10th, 2016, 8:39 am

Re: "Use of unassigned variable"

Postby Jakub Misek » November 7th, 2016, 1:21 pm

Hi, thanks for the test case.

We'll fix the false warning within the next update.

Best,
Jakub
Jakub Misek │ DEVSENSE s.r.o. | @misekjakubjakub@devsense.com
User avatar
Jakub Misek
 
Posts: 2092
Joined: January 4th, 2012, 2:42 pm
Location: Prague


Return to PHP Tools

Who is online

Users browsing this forum: No registered users and 115 guests

cron

User Control Panel

Login

Who is online

In total there are 115 users online :: 0 registered, 0 hidden and 115 guests (based on users active over the past 5 minutes)
Most users ever online was 431 on April 25th, 2024, 1:28 am

Users browsing this forum: No registered users and 115 guests