Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我不知道这是我的错误(错误的 phpDocumentor 注释)还是一个错误。有人遇到这个问题吗?
namespace Bar\Baz; /** * @method Foo baz(boolean $baz) */ class Foo { }
如您所见,链接(即$f->baz()->baz())没有代码完成,并且boolean类型是命名空间的:
$f->baz()->baz()
boolean
这是 PhpStorm 7.x 中的一个已知问题。
如果您使用完全限定的名称链接和类型提示将起作用。
参考:http: //youtrack.jetbrains.com/issue/WI-17404