NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Code Completion support for clone object in PHP


Joined: 17 Nov 2008
Posts: 1
Reply with quote
Can we get code completion (code insight) support for object cloning, so that when you clone an object to a variable, that variable has code completion for the object's class members?

See Object cloning in the PHP manual for details on support for object cloning in PHP.
View user's profileFind all posts by chopp3rSend private message


Joined: 31 Jul 2008
Posts: 17
Location: Basingstoke, UK
Reply with quote
Seconded. See the below example.

Code:
<?php

$foo = new DateTime();
// At this point, PhpED knows what type $foo is, and can suggest methods of the DateTime class when I type "$foo->"

$bar = clone $foo;
//But PhpED has no idea what $bar is, so doesn't suggest DateTime methods when I type "$bar->", even though $bar can be nothing but an instance of DateTime, given how the clone operator works

?>
View user's profileFind all posts by Lord d'EathSend private message


Joined: 21 Nov 2009
Posts: 20
Reply with quote
+1
View user's profileFind all posts by Jan TvrdíkSend private message
Veteran

Joined: 22 May 2008
Posts: 141
Reply with quote
+1
View user's profileFind all posts by simshaunSend private message
Code Completion support for clone object in PHP
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic