【发布时间】:2021-09-03 05:03:01
【问题描述】:
/**
* Get Data
*
* @param null|ProductInterface $product
*
* @return string
* @throws LocalizedException
* @throws NoSuchEntityException
*/
我想使用正则表达式查找 PHPDoc 多行,这样不同类型的 PHPDoc @ 元素之间就没有空行。例如,在
** @return 字符串
** @throws 本地化异常
相对于:
** @param null|ProductInterface $product
**
** @return 字符串
如果您想知道我为什么需要它 - 我必须在不同类型的 PHPDoc @ 元素(在这种情况下为 @param 和 @throws)之间添加一个新的空行。
【问题讨论】:
标签: php regex find phpstorm phpdoc