Skip to content

Conversation

alecsammon
Copy link
Contributor

Sorry - no test on this. Little bit tricky to write.

If file_get_contents fails then it reports a warning as well as returning false. The code then checks for false and throws an exception.

This pull request set's a custom error handler (and resets it) that suppresses the warning.

This should be safe to merge with #115.

@rickmacgillis
Copy link

I'm looking forward to having this request pulled.

@ajacquelin
Copy link

+1

@alecsammon alecsammon force-pushed the missingFileWarning branch from 8471636 to 15ce6bf Compare June 11, 2015 05:50
@alecsammon
Copy link
Contributor Author

Tests added - let me know if you're happy with the format.

bighappyface added a commit that referenced this pull request Jun 14, 2015
@bighappyface bighappyface merged commit 7f55a97 into jsonrainbow:master Jun 14, 2015
@alecsammon alecsammon deleted the missingFileWarning branch June 14, 2015 20:01
@alecsammon
Copy link
Contributor Author

Awesome - thank you

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.

4 participants