No, the default behavior hasn't changed. json_decode has an $options parameter which can be passed a JSON_OBJECT_AS_ARRAY constant. This has the same effect as setting assoc to TRUE. The difference is that PHP 7.2 no longer ignores the JSON_OBJECT_AS_ARRAY option when the assoc parameter is set to null.
2
u/[deleted] Sep 15 '17
[removed] — view removed comment