Typescript Update Item In Array In Php