Intellisense: Clone
Posted:
December 10th, 2013, 5:54 pm
by BladeMF
- 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.
Re: Intellisense: Clone
Posted:
December 10th, 2013, 5:56 pm
by BladeMF
I'm sorry, the intellisense took a little longer this time to pick it up. It works as expected. Sorry again.
Re: Intellisense: Clone
Posted:
December 11th, 2013, 11:43 pm
by Jakub Misek
I'm not sure if we ever tested this. I'll check this, and add this to the todo list eventually.
Thanks,