From b30501061393788852e9275bfc019718ffc09db1 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli <36352093+GuySartorelli@users.noreply.github.com> Date: Fri, 2 Feb 2024 14:03:03 +1300 Subject: [PATCH] MNT Run module-standardiser (#69) --- composer.json | 4 +++- phpstan.neon.dist | 3 +++ src/Extensions/LDAPGroupExtension.php | 3 ++- 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 phpstan.neon.dist diff --git a/composer.json b/composer.json index 3f874d9..52cce4f 100644 --- a/composer.json +++ b/composer.json @@ -31,7 +31,9 @@ }, "require-dev": { "phpunit/phpunit": "^9.6", - "squizlabs/php_codesniffer": "^3" + "squizlabs/php_codesniffer": "^3", + "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 0000000..beb9de3 --- /dev/null +++ b/phpstan.neon.dist @@ -0,0 +1,3 @@ +parameters: + paths: + - src diff --git a/src/Extensions/LDAPGroupExtension.php b/src/Extensions/LDAPGroupExtension.php index 6f9c229..e52cdcc 100644 --- a/src/Extensions/LDAPGroupExtension.php +++ b/src/Extensions/LDAPGroupExtension.php @@ -10,13 +10,14 @@ use SilverStripe\Forms\ReadonlyField; use SilverStripe\LDAP\Model\LDAPGroupMapping; use SilverStripe\ORM\DataExtension; +use SilverStripe\ORM\HasManyList; /** * Class LDAPGroupExtension * * Adds a field to map an LDAP group to a SilverStripe {@link Group} * - * @method SilverStripe\ORM\HasManyList LDAPGroupMappings() + * @method HasManyList LDAPGroupMappings() * * @extends DataExtension */