类变量定义中的phpfmt中断代码
我对phpfmt有问题 当我定义一个类变量时,如:类变量定义中的phpfmt中断代码,php,visual-studio-code,Php,Visual Studio Code,我对phpfmt有问题 当我定义一个类变量时,如: class ClassNameHere { private static array $__counter = []; } 它被格式化为 class ClassNameHere { arrayprivate static $__counter = []; } 这显然违反了我的准则。 到目前为止,我找到的唯一解决方案是不使用类型提示 有人知道是哪个phpfmt通行证造成的,或者是一个错误吗 提前谢谢
class ClassNameHere
{
private static array $__counter = [];
}
它被格式化为
class ClassNameHere
{
arrayprivate static $__counter = [];
}
这显然违反了我的准则。
到目前为止,我找到的唯一解决方案是不使用类型提示
有人知道是哪个phpfmt通行证造成的,或者是一个错误吗
提前谢谢