diff --git a/code/SiteConfig.php b/code/SiteConfig.php index e7e99adb4..39fe4dcb3 100644 --- a/code/SiteConfig.php +++ b/code/SiteConfig.php @@ -36,6 +36,9 @@ * @method ManyManyList CreateTopLevelGroups() * @method ManyManyList EditorGroups() * @method ManyManyList ViewerGroups() + * @method ManyManyList CreateTopLevelMembers() + * @method ManyManyList EditorMembers() + * @method ManyManyList ViewerMembers() */ class SiteConfig extends DataObject implements PermissionProvider, TemplateGlobalProvider { diff --git a/composer.json b/composer.json index 928bc1c1e..2f8d7bed4 100644 --- a/composer.json +++ b/composer.json @@ -20,7 +20,9 @@ }, "require-dev": { "phpunit/phpunit": "^9.6", - "squizlabs/php_codesniffer": "^3.7" + "squizlabs/php_codesniffer": "^3.7", + "silverstripe/standards": "^1", + "phpstan/extension-installer": "^1.3" }, "autoload": { "psr-4": { diff --git a/phpstan.neon.dist b/phpstan.neon.dist new file mode 100644 index 000000000..d10aea03b --- /dev/null +++ b/phpstan.neon.dist @@ -0,0 +1,3 @@ +parameters: + paths: + - code