Skip to content

Fixes the problem with macros returning Renderable implementations #7980

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

Closed
wants to merge 6 commits into from
Closed

Conversation

kirkbushell
Copy link
Contributor

As per this previous PR: #7965

The issue is around macros that return view components - resulting in (possibly) exceptions being thrown when the view is rendered via __toString. This ensures that if a macroable class implements a macro that returns a view, it will be rendered correctly and the exception handling work as expected - and everyone's happy!

@JoostK
Copy link
Contributor

JoostK commented Mar 12, 2015

This really is not a solution, rather a workaround for a very specific case (thus not eliminating the problem in all cases) and also a breaking change for people using macros to return views, and then continuing to manipulate that view.

@kirkbushell
Copy link
Contributor Author

@JoostK hmmm, good points. So I guess then we just have to wait for __toString to be removed?

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