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

fix(preview): gracefully handle file not being opened in ProviderV2 #47858

Merged
merged 1 commit into from
Sep 10, 2024

Conversation

st3iny
Copy link
Member

@st3iny st3iny commented Sep 10, 2024

Summary

Sometimes, the call to fopen fails, e.g. if the file resides on an external storage which is not available. We should handle this case gracefully and just return false which is also compliant with the method's return type @return string|false.

Checklist

@st3iny
Copy link
Member Author

st3iny commented Sep 10, 2024

/backport to stable30

@st3iny
Copy link
Member Author

st3iny commented Sep 10, 2024

/backport to stable29

@st3iny
Copy link
Member Author

st3iny commented Sep 10, 2024

/backport to stable28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TypeError is thrown in preview generator
3 participants