Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
PhpStorm 是否有特定原因在构造函数的返回类型前加上斜杠?
class MyTest { /** * Constructor * * @return \MyTest **/ public function __construct(){} }
它在 PHPDoc 本身中是否有特殊含义?还是一些特定的 IDE 功能?
它基本上意味着MyTest驻留在全局namespace.
MyTest
namespace