lint/php-8.3/prefer-json-validate
In the modernize set. Safe fix. Gated by php-8.3.
What it does
Replace json_decode($json, true) !== null && json_last_error() === JSON_ERROR_NONE with json_validate()
Configuration
[lint.rules]
"php-8.3/prefer-json-validate" = "error"
To skip it in some files or lines, add an override or an ignore comment.
Replaces
JsonValidate(rector)