Skip to content

[3.x] fix: allow private methods to be used as accessors#2334

Closed
calebdw wants to merge 1 commit intolarastan:3.xfrom
calebdw:calebdw/push-pyuklxrmrnlt
Closed

[3.x] fix: allow private methods to be used as accessors#2334
calebdw wants to merge 1 commit intolarastan:3.xfrom
calebdw:calebdw/push-pyuklxrmrnlt

Conversation

@calebdw
Copy link
Copy Markdown
Contributor

@calebdw calebdw commented Aug 12, 2025

Hello!

Rector automatically converts protected methods to private in final classes (as it should). However, this breaks attribute detection.

Thanks!

Rector automatically converts protected methods to private in final
classes (as it should). However, this breaks attribute detection.
@calebdw calebdw changed the title fix: allow private methods to be used as accessors [3.x] fix: allow private methods to be used as accessors Aug 12, 2025
@calebdw
Copy link
Copy Markdown
Contributor Author

calebdw commented Aug 12, 2025

Actually, it looks like model attributes (and scopes) have to be protected and cannot be private---otherwise the parent Model is not able to call the methods

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

Successfully merging this pull request may close these issues.

1 participant