Skip to content

Commit 7dfa853

Browse files
committed
Use function FQNs everywhere
1 parent bf1fe4f commit 7dfa853

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/functions.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,6 @@ function encode($value, int $options = 0, int $depth = 512)
4848

4949
namespace
5050
{
51-
use function ExceptionalJSON\decode;
52-
use function ExceptionalJSON\encode;
53-
5451
if (!function_exists('json_try_decode')) {
5552
/**
5653
* Decodes a JSON string.
@@ -64,7 +61,7 @@ function encode($value, int $options = 0, int $depth = 512)
6461
*/
6562
function json_try_decode(string $json, bool $assoc = false, int $depth = 512, int $options = 0)
6663
{
67-
return decode($json, $assoc, $depth, $options);
64+
return \ExceptionalJSON\decode($json, $assoc, $depth, $options);
6865
}
6966
}
7067

@@ -80,7 +77,7 @@ function json_try_decode(string $json, bool $assoc = false, int $depth = 512, in
8077
*/
8178
function json_try_encode($value, int $options = 0, int $depth = 512)
8279
{
83-
return encode($value, $options, $depth);
80+
return \ExceptionalJSON\encode($value, $options, $depth);
8481
}
8582
}
8683
}

0 commit comments

Comments
 (0)