在 PhpStorm 中使用自动 php docblock 生成时,我最终得到@static
了静态方法上的注释:
/**
* Reset the singleton instance, for the tests only
* @static
*/
public static function reset() {
self::$singletonInstance = null;
}
如果可以从代码中推断出这些标签,它们有什么用处吗?我正在尝试决定是否应该保留它或删除它(并且在任何地方都这样做,以便保持一致)。