diff --git a/composer.json b/composer.json index 4f4e85c4..fcc7e6f2 100755 --- a/composer.json +++ b/composer.json @@ -20,7 +20,9 @@ "squizlabs/php_codesniffer": "^3", "silverstripe/widgets": "^3", "silverstripe/comments": "^4", - "silverstripe/content-widget": "^3" + "silverstripe/content-widget": "^3", + "silverstripe/standards": "^1", + "phpstan/extension-installer": "^1.3" }, "extra": { "expose": [ @@ -55,4 +57,4 @@ }, "minimum-stability": "dev", "prefer-stable": true -} \ No newline at end of file +} diff --git a/phpstan.neon.dist b/phpstan.neon.dist new file mode 100644 index 00000000..beb9de3c --- /dev/null +++ b/phpstan.neon.dist @@ -0,0 +1,3 @@ +parameters: + paths: + - src diff --git a/src/Model/BlogCategory.php b/src/Model/BlogCategory.php index 60367e45..5d9bc509 100644 --- a/src/Model/BlogCategory.php +++ b/src/Model/BlogCategory.php @@ -11,7 +11,6 @@ * @property string $URLSegment * @property int $BlogID * @method Blog Blog() - * @method SilverStripe\ORM\ManyManyList BlogPosts() */ class BlogCategory extends DataObject implements CategorisationObject { diff --git a/src/Model/BlogMemberExtension.php b/src/Model/BlogMemberExtension.php index c5c104a4..6d924d66 100644 --- a/src/Model/BlogMemberExtension.php +++ b/src/Model/BlogMemberExtension.php @@ -10,6 +10,7 @@ use SilverStripe\Forms\Tab; use SilverStripe\Forms\TextareaField; use SilverStripe\ORM\DataExtension; +use SilverStripe\ORM\ManyManyList; use SilverStripe\Security\Member; use SilverStripe\View\Parsers\URLSegmentFilter; use SilverStripe\View\Requirements; @@ -17,7 +18,7 @@ /** * This class is responsible for add Blog specific behaviour to Members. * - * @method SilverStripe\ORM\ManyManyList BlogPosts() + * @method ManyManyList BlogPosts() * @method Image BlogProfileImage() * * @extends DataExtension diff --git a/src/Model/BlogTag.php b/src/Model/BlogTag.php index 17644c23..a7223a22 100644 --- a/src/Model/BlogTag.php +++ b/src/Model/BlogTag.php @@ -11,7 +11,6 @@ * @property string $URLSegment * @property int $BlogID * @method Blog Blog() - * @method SilverStripe\ORM\ManyManyList BlogPosts() */ class BlogTag extends DataObject implements CategorisationObject {