Cron PHP Version Mismatch

In WHMCS -

Your environment appears to be running a different PHP version (7.1.30) for the System Cron than the currently loaded PHP version (7.3.13). This may cause issues running your System Cron.

How to fix this ?

use full path to php binary , instead of php

e.g.

/usr/local/lsws/lsphpXX/bin/lsphp /path/to/your/script.php

I also explained how to fix this in this thread via symlinking the main PHP version if your opposed to using the full path.
https://forums.cyberpanel.net/discussion/comment/6193#Comment_6193

Example with full path:
*/5 * * * * /usr/local/lsws/lsphp73/bin/php -q /home/example.com/public_html/whmcs/crons/cron.php >/dev/null 2>&1

Example with system PHP symlinked to the PHP73 so everything uses PHP73 by default

[root@wcloud:~]# ls -l /usr/bin/php
lrwxrwxrwx 1 root root 31 Sep 8 08:30 /usr/bin/php → /usr/local/lsws/lsphp73/bin/php
[root@wcloud:~]#

*/5 * * * * /usr/bin/php -q /home/example.com/public_html/whmcs/crons/cron.php >/dev/null 2>&1

Thanks

How to set PHP version as default in CP?