The function signature or these methods changes and you would have to adapt the passed values to is using the docs 40.
I’m not sure which line of code is causing the error, so feel free to add the stack trace in case you get stuck.