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

No $this->property and $this->getProperty() mix. #154

Open
LastDragon-ru opened this issue Apr 25, 2024 · 0 comments
Open

No $this->property and $this->getProperty() mix. #154

LastDragon-ru opened this issue Apr 25, 2024 · 0 comments
Assignees
Labels
! Breaking change scope: refactor
Milestone

Comments

@LastDragon-ru
Copy link
Owner

LastDragon-ru commented Apr 25, 2024

The new code usually uses (readonly) $this->property, the old code prefer $this->getProperty(). Only one style should be used. And the winner is $this->getProperty() (because it can be mocked) protected readonly $property.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
! Breaking change scope: refactor
Projects
None yet
Development

No branches or pull requests

1 participant