Please upgrade your PHP version to version 7.2
Tutorial on changing the PHP version in Cpanel
Tutorial on changing the PHP version in the DirectAdmin