From a00bdd727f987ae2cb503504e2b817f5b29f5041 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli <36352093+GuySartorelli@users.noreply.github.com> Date: Tue, 13 Feb 2024 14:33:23 +1300 Subject: [PATCH] MNT Run module-standardiser (#11121) --- composer.json | 4 +++- phpstan.neon.dist | 3 +++ src/Security/Group.php | 1 - src/Security/Member.php | 1 - 4 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 phpstan.neon.dist diff --git a/composer.json b/composer.json index 64761fe4d..3a3211a9f 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 000000000..beb9de3c5 --- /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 cfc5a8098..ce9f6310e 100755 --- a/src/Security/Group.php +++ b/src/Security/Group.php @@ -49,7 +49,6 @@ use SilverStripe\ORM\UnsavedRelationList; * * @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 023b96caa..3a0308a73 100644 --- a/src/Security/Member.php +++ b/src/Security/Member.php @@ -60,7 +60,6 @@ use RuntimeException; * @property int $FailedLoginCount * @property string $DateFormat * @property string $TimeFormat - * @method ManyManyList Groups() * @method HasManyList LoggedPasswords() * @method HasManyList RememberLoginHashes() */