Skip to content

[9.x] Use json_validate #673

Merged
duncanmcclean merged 2 commits intomasterfrom
json-validate
Mar 20, 2025
Merged

[9.x] Use json_validate #673
duncanmcclean merged 2 commits intomasterfrom
json-validate

Conversation

@duncanmcclean
Copy link
Member

PHP 8.3 introduced the json_validate function which allows for checking whether a string contains valid JSON or not.

Now that we've dropped support for PHP 8.2, we can finally replace our Json::isJson() method in favour of this new function. 🎉

@duncanmcclean duncanmcclean merged commit 898d7b8 into master Mar 20, 2025
35 checks passed
@duncanmcclean duncanmcclean deleted the json-validate branch March 20, 2025 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant