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

Naming issue: attribute #583

Open
samdark opened this issue Feb 22, 2023 · 1 comment
Open

Naming issue: attribute #583

samdark opened this issue Feb 22, 2023 · 1 comment
Labels
severity:BC breaking Breaks backwards compatibility type:task Task
Milestone

Comments

@samdark
Copy link
Member

samdark commented Feb 22, 2023

We call data properties "attributes" because in both Yii1 and Yii2 these were called so. The issue is that PHP now has https://www.php.net/manual/en/language.attributes.overview.php so the name became very confusing.

Renaming would require breaking BC so that's for the next major version.

Thanks, @vudaltsov for pointing it.

@samdark samdark added the type:bug Bug label Feb 22, 2023
@samdark samdark added this to the 2.0.0 milestone Feb 22, 2023
@arogachev arogachev added type:task Task severity:BC breaking Breaks backwards compatibility and removed type:bug Bug labels Feb 23, 2023
@arogachev
Copy link
Contributor

I used "attributes" / "PHP attributes", but agree that the naming can be improved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity:BC breaking Breaks backwards compatibility type:task Task
Projects
None yet
Development

No branches or pull requests

2 participants