Created
September 11, 2018 20:03
-
-
Save jonnybarnes/84f829c7e2a2e5e4562db0f9f57cc33d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
try { | |
json_decode('{invalid{json', false, 512, JSON_THROW_ON_ERROR); | |
} catch (\JSONException $exception) { | |
MyLogger::error($exception->getMessage()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment