You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since PHP 7.3.0, the json_encode and json_decode functions have a JSON_THROW_ON_ERROR to be set in order to throw an exception instead of returning false in case of error.
Also, Rector proposes to automatically adding it trough the official PHP upgrade migration rules.
Is is still interesting to maintain those function inside this project? If not, we may mark them as deprecated. Also, we should update the provided rector migration file accordingly:
Summary
Since PHP 7.3.0, the
json_encode
andjson_decode
functions have aJSON_THROW_ON_ERROR
to be set in order to throw an exception instead of returningfalse
in case of error.Also, Rector proposes to automatically adding it trough the official PHP upgrade migration rules.
Is is still interesting to maintain those function inside this project? If not, we may mark them as deprecated. Also, we should update the provided rector migration file accordingly:
safe/rector-migrate.php
Lines 461 to 462 in 3a6e43b
Any though?
The text was updated successfully, but these errors were encountered: