【发布时间】:2020-07-16 12:40:14
【问题描述】:
我有一个使用作为引用传递的属性的函数:
public function doSomething(&$argumentPassedByReference)
{
// ...
}
我维护我的项目的 PHPDoc,所以我这样描述我的函数:
/**
* Do something very useful with the thing passed in parameters
*
* @param Type $argumentPassedByReference Thing that will be edited
*/
public function doSomething(&$argumentPassedByReference)
但我并不是很满意,因为它没有显示 $argumentPassedByReference 是通过引用传递的。 PHPDoc中是否有标准来描述这一点?
【问题讨论】: