I have been successfully using dataforms in Moodle 3.4.4 for several weeks.... I just upgraded to 3.5.1. No errors. My configuration is:
- Moodle 3.5.1
- PHP 7.2.9 (with mcrypt added through PECL)
https://lukasmestan.com/install-mcrypt-extension-in-php7-2/