在PhpStorm(以及其他JetBrains IDE)中,是否可以将函数属性设置为文件/资源路径?
例如,在这个函数中:
例如,在这个函数中:
function mix($file): string
{
// check mix maninfest for $file and return path from mix manifest
return $fire_path_with_cachebuster;
}
当调用mix函数时,我希望PHP在项目中建议文件作为我定义的$file
属性。
// language=file-reference
进行引用。 - Kevin Beal#[Language('file-reference')]
属性(遗憾的是,它似乎没有任何作用) - Christian