Skip to content

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

Description

@LastDragon-ru

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions