Skip to content

Commit

Permalink
Remove dead code. JSON_THROW_ON_ERROR is always defined for php ^7.4|…
Browse files Browse the repository at this point in the history
…^8.0.
  • Loading branch information
jojo1981 committed Sep 6, 2021
1 parent 0c30f52 commit 22374e9
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/Decoder/JsonDecoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,8 @@
use Jojo1981\DecoderAggregate\DecoderInterface;
use Jojo1981\DecoderAggregate\Exception\JsonDecodeException;
use Throwable;
use function define;
use function defined;
use function json_decode;

if (!defined('JSON_THROW_ON_ERROR')) {
define('JSON_THROW_ON_ERROR', 4194304);
}

/**
* @package Jojo1981\DecoderAggregate\Decoder
*/
Expand Down

0 comments on commit 22374e9

Please sign in to comment.