src/JsonDecoder.php
public function setBigIntDecoding($decoding)
    {
        if (self::FLOAT !== $decoding && self::STRING !== $decoding) {
            throw new \InvalidArgumentException(sprintf(
                'Expected JsonDecoder::FLOAT or JsonDecoder::JSON_STRING. '.
                'Got: %s',
                $decoding
            ));
        }

        $this->bigIntDecoding = $decoding;
    }
public function setBigIntDecoding($decoding)
    {
        if (self::FLOAT !== $decoding && self::STRING !== $decoding) {
            throw new \InvalidArgumentException(sprintf(
                'Expected JsonDecoder::FLOAT or JsonDecoder::JSON_STRING. '.
                'Got: %s',
                $decoding
            ));
        }

        $this->bigIntDecoding = $decoding;
    }
public function setBigIntDecoding ( $ decoding ) { if ( self :: FLOAT !== $ decoding && self :: STRING !== $ decoding ) { throw new \ InvalidArgumentException ( sprintf ( 'Expected JsonDecoder::FLOAT or JsonDecoder::JSON_STRING. ' . 'Got: %s' , $ decoding ) ) ; } $ this -> bigIntDecoding = $ decoding ; }
Sets the decoding of big integers.

By default, big integers are decoded as floats.

@param int $decoding One of the constants {@link FLOAT} and {@link JSON_STRING}

@throws \InvalidArgumentException If the passed decoding is invalid
Sets the decoding of big integers .