From b303eb5141b1a608e2ad99fbebb6e150e9c846eb Mon Sep 17 00:00:00 2001 From: Guy Sartorelli <36352093+GuySartorelli@users.noreply.github.com> Date: Fri, 2 Feb 2024 14:04:01 +1300 Subject: [PATCH] MNT Run module-standardiser (#180) --- composer.json | 4 +++- phpstan.neon.dist | 3 +++ src/Extensions/MemberExtension.php | 3 ++- 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 phpstan.neon.dist diff --git a/composer.json b/composer.json index 5c176d1..a56db44 100644 --- a/composer.json +++ b/composer.json @@ -31,7 +31,9 @@ "require-dev": { "phpunit/phpunit": "^9.6", "squizlabs/php_codesniffer": "^3.7", - "symbiote/silverstripe-queuedjobs": "^5" + "symbiote/silverstripe-queuedjobs": "^5", + "silverstripe/standards": "^1", + "phpstan/extension-installer": "^1.3" }, "suggest": { "symbiote/silverstripe-queuedjobs": "^5", diff --git a/phpstan.neon.dist b/phpstan.neon.dist new file mode 100644 index 0000000..beb9de3 --- /dev/null +++ b/phpstan.neon.dist @@ -0,0 +1,3 @@ +parameters: + paths: + - src diff --git a/src/Extensions/MemberExtension.php b/src/Extensions/MemberExtension.php index 9bd9ac8..c1c69c1 100644 --- a/src/Extensions/MemberExtension.php +++ b/src/Extensions/MemberExtension.php @@ -4,6 +4,7 @@ use SilverStripe\Forms\FieldList; use SilverStripe\ORM\DataExtension; +use SilverStripe\ORM\HasManyList; use SilverStripe\Security\Member; use SilverStripe\SessionManager\FormFields\SessionManagerField; use SilverStripe\SessionManager\Models\LoginSession; @@ -11,7 +12,7 @@ /** * Augment `Member` to allow relationship to the LoginSession DataObject * - * @method SilverStripe\ORM\HasManyList LoginSessions() + * @method HasManyList LoginSessions() * * @extends DataExtension */