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 */