Closed MegaphoneJon closed 11 months ago
json_decode() returns stdObject unless you pass TRUE as its second argument. Right after processInput() is called, validateMessages() is called to ensure we have an array. Which we don't. So now we do.
json_decode()
stdObject
TRUE
processInput()
validateMessages()
json_decode()
returnsstdObject
unless you passTRUE
as its second argument. Right afterprocessInput()
is called,validateMessages()
is called to ensure we have an array. Which we don't. So now we do.