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

Fail loud should apply consistently #31

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

rakelley
Copy link

As we understand it, the intent behind fail_loud is to allow graceful degradation to client-side-only rendering in production if SSR fails. The current implementation currently only supports this for errors returned by the JS rendering implementation, rather than generated by the PHP renderer itself. This PR changes fail_loud: false to universally prevent SSR-originating errors from preventing page rendering. If this is not a desired change, an alternative would be to add a separate option to control this behavior.

This change required bumping the minimum PHP version to permit \Throwable, I hope this is acceptable as at this point such versions are long past EOL.

@rakelley rakelley force-pushed the fail-loud-should-apply-consistently branch from 73db243 to ad7061c Compare February 27, 2019 13:59
@rakelley
Copy link
Author

I fixed the test and config to pass CI on 7.1 - 7.3, it doesn't appear the 8.0 nightly is a compatible target and should likely be dropped.

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.

None yet

1 participant