Skip to content

Commit cc74ab3

Browse files
committed
check if JsonException exists before adding it to the global namespace
1 parent 958a987 commit cc74ab3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compat/json-exception-polyfill.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
if (PHP_VERSION_ID < 70300) {
3+
if (PHP_VERSION_ID < 70300 && ! class_exists('JsonException')) {
44
class JsonException extends Exception
55
{
66
}

0 commit comments

Comments
 (0)