Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect fixing of property names #138

Open
micaherne opened this issue Mar 27, 2024 · 1 comment
Open

Incorrect fixing of property names #138

micaherne opened this issue Mar 27, 2024 · 1 comment

Comments

@micaherne
Copy link
Contributor

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;
    }
}
@micaherne
Copy link
Contributor Author

This is with v3.4.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant