Open orklah opened 3 years ago
I noticed json_encode is pure in stubs.
The JsonSerializable could theorically have side-effects: https://3v4l.org/naGsf
Should we keep it pure?
Hey @orklah, can you reproduce the issue on https://psalm.dev ?
Also it can change the result of json_last_error(_msg): https://3v4l.org/YIUvW, so it's not pure, at least in theory.
json_last_error(_msg)
I noticed json_encode is pure in stubs.
The JsonSerializable could theorically have side-effects: https://3v4l.org/naGsf
Should we keep it pure?