IntelliSense on base class constructor
I am currently trying the editor and have been having a number of problems getting IntelliSense to work in my existing projects. I don't know for sure if it's my code, config or bugs in VS.PHP. To test this I am creating some very simple projects which will become more complex as I go. For now I have found that if I define a class with a __construct() method and then define another class that extends the first but without the __construct() method the IntelliSense does not work for the second class. For example, try the following code.
<?php
/**
* TestA class is for testing VS.PHP.
*/
class TestA
{
/**
* The value to store.
*
* @var string
*/
private $_str;
/**
* Creates a new TestA class
*
* @param string The value to store
*
* @return void
*/
public function __construct($str)
{
$this->_str = $str;
}
/**
* This is method getValue
*
* @return mixed This is the return value description
*
*/
public function getValue()
{
return $this->_str;
}
}
/**
* TestB class is for testing VS.PHP.
*/
class TestB extends TestA
{
/**
* This is method getPrefixedValue
*
* @param mixed $prefix This is a description
*
* @return mixed This is the return value description
*/
public function getPrefixedValue($prefix)
{
return sprintf('%s%s',$prefix,$this->getValue());
}
}
$MyTest = new TestB('Just a test');
print $MyTest->getPrefixedValue('This is ');
?>When creating a new instance of TestB there is no IntelliSense. If you hit Ctrl-Space after the right paren you get a list of hundreds of built in php functions and variables but nothing about the actual class. Creating an instance of TestA works fine.
Is this a bug or by design.


That would be a bug. Are you
That would be a bug. Are you using the latest VS.Php 2.5?
Yes I am currently on
Yes I am currently on version 2.5.3.4907
It is strange because when I
It is strange because when I test it, it works fine.
I'm wondering what's different on your system.
BTW, what edition of VS.Php
BTW, what edition of VS.Php are you using? 2008, 2005 or SE?
I am using 2008 but now my
I am using 2008 but now my trial has expired so I cannot test any more with it.
Could you please try the
Could you please try the latest version 2.6?
http://www.jcxsoftware.com/jcx/vsphp-dev