Inspectopedia
 
2024.3

'json_decode()' and 'json_last_error()' can be converted to 'json_validate()'

Info
New
Last modified: 03 December 2024

In PHP 8.3 and later, suggests converting `json_decode()` and `json_last_error() === JSON_ERROR_NONE` to `json_validate()`.

See PHP RFC: json_validate for details.