|
|
@@ -165,10 +165,8 @@ final class Utils
|
|
|
* @param int $code return code of json_last_error function
|
|
|
* @param mixed $data data that was meant to be encoded
|
|
|
* @throws \RuntimeException
|
|
|
- *
|
|
|
- * @return never
|
|
|
*/
|
|
|
- private static function throwEncodeError(int $code, $data): void
|
|
|
+ private static function throwEncodeError(int $code, $data): never
|
|
|
{
|
|
|
switch ($code) {
|
|
|
case JSON_ERROR_DEPTH:
|