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

[5.x] Change method visibility in AbstractAugmented class #10414

Merged
merged 1 commit into from
Jul 8, 2024

Conversation

aerni
Copy link
Contributor

@aerni aerni commented Jul 8, 2024

PR #9636 introduced a refactor to the AbstractAugmented class that broke a custom augmented class of mine. I need to be able to customize the returned Value object. This used to be possible by overriding the wrapValue method. However, the PR added some new methods that are currently private and can't be overridden.

This PR changes the visibility of those methods to protected. I talked to @JohnathonKoster about it and got green lights for this change.

@aerni aerni changed the title Change method visibility in AbstractAugmented class [5.x] Change method visibility in AbstractAugmented class Jul 8, 2024
@jasonvarga
Copy link
Member

Can you give an example of what you'd be returning?

@aerni
Copy link
Contributor Author

aerni commented Jul 8, 2024

See here: https://github.com/aerni/statamic-advanced-seo/pull/160/files. I need to attach a dummy fieldtype to the Value object to enable parsing of Antlers.

@jasonvarga jasonvarga merged commit c7fc40d into statamic:5.x Jul 8, 2024
17 of 18 checks passed
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.

2 participants