diff --git a/composer.json b/composer.json index 64761fe4da4..3a3211a9f66 100644 --- a/composer.json +++ b/composer.json @@ -62,7 +62,9 @@ "require-dev": { "phpunit/phpunit": "^9.6", "silverstripe/versioned": "^2", - "squizlabs/php_codesniffer": "^3.7" + "squizlabs/php_codesniffer": "^3.7", + "silverstripe/standards": "^1", + "phpstan/extension-installer": "^1.3" }, "conflict": { "egulias/email-validator": "^2", diff --git a/phpstan.neon.dist b/phpstan.neon.dist new file mode 100644 index 00000000000..beb9de3c577 --- /dev/null +++ b/phpstan.neon.dist @@ -0,0 +1,3 @@ +parameters: + paths: + - src diff --git a/src/Security/Group.php b/src/Security/Group.php index cfc5a8098d5..ce9f6310eca 100755 --- a/src/Security/Group.php +++ b/src/Security/Group.php @@ -49,7 +49,6 @@ * * @mixin Hierarchy * @method HasManyList Groups() - * @method ManyManyList Members() * @method Group Parent() * @method HasManyList Permissions() * @method ManyManyList Roles() diff --git a/src/Security/Member.php b/src/Security/Member.php index 023b96caa5d..3a0308a7335 100644 --- a/src/Security/Member.php +++ b/src/Security/Member.php @@ -60,7 +60,6 @@ * @property int $FailedLoginCount * @property string $DateFormat * @property string $TimeFormat - * @method ManyManyList Groups() * @method HasManyList LoggedPasswords() * @method HasManyList RememberLoginHashes() */