Extension for [PHPStan](https://phpstan.org) to allow static analysis of CiviCRM.
Extension for PHPStan to allow static analysis of CiviCRM.
The PHPStan CiviCRM was created through a sponsorship by Megaphone Technology Consulting 🎉
To use the PHPStan CiviCRM extension, you must define the root location of CiviCRM.
parameters: civicrm: root: sites/all/modules/civicrm
The default value expects CiviCRM to live in the Composer vendor directory, like it does for Drupal 8.
civicrm.root parameter this is equal to
$civicrm_root as defined in the CMS integration settings. Here are some examples assuming your CMS is installed at
- Drupal 7:
- Drupal 8: