NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Problems with code insight and "mixed"
Veteran

Joined: 26 Dec 2006
Posts: 253
Location: Phoenix, AZ
Reply with quote
Code insight tool tips get a little wacky when functions take or return mixed types. To see what I mean, play around with the following (I'm using build 5028):

Code:
<?php

/**
 * @param mixed the a param
 */
function foo($a) {
}

/**
 * @param integer the a param
 * @return mixed the result
 */
function bar($a) {
}

/**
 * @param integer the a param
 * @return string the result
 */
function baz($a) {
}





//experiment here with code completion for the above


?>
View user's profileFind all posts by bobwilliamsSend private messageVisit poster's website
Veteran

Joined: 26 Dec 2006
Posts: 253
Location: Phoenix, AZ
Reply with quote
Is anyone else seeing this?
View user's profileFind all posts by bobwilliamsSend private messageVisit poster's website
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
Yep, it swallows them quite unexpectedly. It does not affect code completion functionality and if for example real classes names are used in PHPDOC, they are used right. As of appearance of mixed, string and some other keywords, we'll fix it in the next major release.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Problems with code insight and "mixed"
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