On running phpcbf on this code with either the moodle or moodle-extra standards, the property is renamed but the property access is not, breaking the code:
class test {
public string $property_one = 'test';
public function some_method(): string {
return $this->property_one;
}
}
It becomes:
class test {
public string $propertyone = 'test';
public function some_method(): string {
return $this->property_one;
}
}
On running phpcbf on this code with either the moodle or moodle-extra standards, the property is renamed but the property access is not, breaking the code:
It becomes: