php IDE class 个对象的智能感知

php IDE intellisense on class objects

//我有这样的代码

class Docs{
    public $docName;
    public $files=array();
}
class Files{
    public $fileName;
}
$doc=new Docs;
$doc->files[0]=new Files;

// I have intellisense in this level
$doc->

//but there is no intellisense in next level 
$doc->files[0]->

//我应该使用哪个IDE? //我已经测试了dreamweaver和zend Studio。

由于 PHP 可以是鸭子类型的,如果没有通过 PHPDoc(如果 DreamWeaver 支持的话)的显式类型声明或 [=20= 执行的反射,则无法确定对象属性的类型] 如果流程足够清晰(如果 属性 由使用标量类型提示的构造函数传递给对象,等等...)。

$doc->files 几乎可以包含任何内容,那么 IDE 可以做什么?

无论如何,我总是推荐 PHPStorm 作为 PHP IDE。