【发布时间】:2017-03-19 16:06:10
【问题描述】:
我有一个返回集合的类:
public function getCustomers() : Collection;
当我循环结果时,PhpStorm IDE 不会知道集合中的内容。
在 .NET/JAVA 中你会写:
public <List<Customer>> getCustomers();
然后 IDE 将知道集合中的内容并知道如何完成/提示。
有什么技巧可以将它引入 PhpStorm 吗?
【问题讨论】: