Intellisense: Clone

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

Intellisense: Clone

Postby BladeMF » December 10th, 2013, 5:54 pm

Code: Select all
$StartDate = $FromDate;
$EndDate = clone($StartDate);
$EndDate->


If you know $FromDate is a CDate class, then you figure out that $StartDate is also a CDate class. So far so good. But after clone() you suddenly don't know what $EndDate is. And it can only be a CDate. :)
Welcome to the zone where normal things don't happen very often.
BladeMF
 
Posts: 346
Joined: October 10th, 2012, 7:14 am

Re: Intellisense: Clone

Postby BladeMF » December 10th, 2013, 5:56 pm

I'm sorry, the intellisense took a little longer this time to pick it up. It works as expected. Sorry again.
Welcome to the zone where normal things don't happen very often.
BladeMF
 
Posts: 346
Joined: October 10th, 2012, 7:14 am

Re: Intellisense: Clone

Postby Jakub Misek » December 11th, 2013, 11:43 pm

I'm not sure if we ever tested this. I'll check this, and add this to the todo list eventually.

Thanks,
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 52 guests

cron

User Control Panel

Login

Who is online

In total there are 52 users online :: 0 registered, 0 hidden and 52 guests (based on users active over the past 5 minutes)
Most users ever online was 511 on April 27th, 2024, 10:11 pm

Users browsing this forum: No registered users and 52 guests