正确的方法来表示phpDocumentor的数组数据类型?

以下哪项是为PHPDocumentor记录此方法的返回类型的正确方法

方法1:

/**
 * @return array Foo array.
 */
public function foo() {
    return array(1,2,3);
}

方法2:

/**
 * @return integer[] Foo array.
 */
public function foo() {
    return array(1,3);
}

此外,这两种方法都有任何IDE含义吗?

编辑:

似乎PHPStorm和Netbeans 7.1 IDE都支持第二种方法.

这两种方法在技术上都是正确的,但是这个方法被认为是“更好的”,因为它更具体(int和integer是可互换的):
@return int[]

记录在这里

http://www.phpdoc.org/docs/latest/guides/types.html

相关文章

统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...
统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...
前言 之前做了微信登录,所以总结一下微信授权登录并获取用户...
FastAdmin是我第一个接触的后台管理系统框架。FastAdmin是一...
之前公司需要一个内部的通讯软件,就叫我做一个。通讯软件嘛...
统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...