public function getOptions(): int
    {
        $options = $this->traitGetOptions();

        if (! (bool)($options & \JSON_THROW_ON_ERROR)) {
            $options |= \JSON_THROW_ON_ERROR;
        }

        return $options;
    }