5
當PhpStorm使用自動PHP的docblock一代,我結束了與@static
註釋的靜態方法:像@static這樣冗餘的php docblock標籤有什麼意義?
/**
* Reset the singleton instance, for the tests only
* @static
*/
public static function reset() {
self::$singletonInstance = null;
}
是否有這些標記任何使用,如果他們可以從代碼可以推斷?我試圖決定是否應該放棄它或刪除它(並且在任何地方都這樣做,因此它是一致的)。
哦,是的我沒有想到PHP4,現在它是有道理的;) –