phpfmt_stable
phpfmt_stable copied to clipboard
method-modifiers get stripped if class has constant-values containing the class-keyword (name resolution)
If a class has constant-values containing the class-keyword (used for name resolution) all method-modifiers get stripped from all methods except the first method.
Example:
class Foo
{
const BAR_CLASS = Bar::class;
public function method1()
{
// ...
}
public function method2()
{
// ...
}
protected function method3()
{
// ...
}
}
Result:
class Foo
{
const BAR_CLASS = Bar::class;
public function method1()
{
// ...
}
function method2()
{
// ...
}
function method3()
{
// ...
}
}
I solved this issue there : https://github.com/MKCG/phpfmt_7-1