Skip to content

Commit

Permalink
check if JsonException exists before adding it to the global namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
digibeuk committed Dec 3, 2020
1 parent 958a987 commit cc74ab3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compat/json-exception-polyfill.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

if (PHP_VERSION_ID < 70300) {
if (PHP_VERSION_ID < 70300 && ! class_exists('JsonException')) {
class JsonException extends Exception
{
}
Expand Down

0 comments on commit cc74ab3

Please sign in to comment.