Intellisense: Clone
3 posts
• Page 1 of 1
Intellisense: Clone
- 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
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
I'm not sure if we ever tested this. I'll check this, and add this to the todo list eventually.
Thanks,
Thanks,
Jakub Misek │ DEVSENSE s.r.o. | @misekjakub │ jakub@devsense.com │
-
Jakub Misek - Posts: 2092
- Joined: January 4th, 2012, 2:42 pm
- Location: Prague
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 52 guests