It would be nice to be able to run phpstan against the sources.
I was unable to accomplish this on a quick try, quite possibly due to the ioncube encoded files of WHMCS proper. Eventually ran into things like
$ php ./phpstan.phar analyse modules/servers/upCloudVps
Internal error: Class "Illuminate\Database\Capsule\Manager" not found while analysing file /var/www/html/modules/servers/upCloudVps/lib/ajaxAction.php
It would be nice to be able to run phpstan against the sources.
I was unable to accomplish this on a quick try, quite possibly due to the ioncube encoded files of WHMCS proper. Eventually ran into things like