From 6239a4ea5e4ca0cfd5327e7dbbba5f6cc0db0335 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli <36352093+GuySartorelli@users.noreply.github.com> Date: Fri, 2 Feb 2024 13:56:21 +1300 Subject: [PATCH] MNT Run module-standardiser (#589) --- composer.json | 6 ++++-- phpstan.neon.dist | 3 +++ src/Shortcodes/FileLinkTracking.php | 4 ++-- 3 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 phpstan.neon.dist diff --git a/composer.json b/composer.json index dd3b7a97..82cf6d9f 100644 --- a/composer.json +++ b/composer.json @@ -30,7 +30,9 @@ "silverstripe/recipe-testing": "^3", "silverstripe/versioned": "^2", "squizlabs/php_codesniffer": "^3.7", - "mikey179/vfsstream": "^v1.6.11" + "mikey179/vfsstream": "^v1.6.11", + "silverstripe/standards": "^1", + "phpstan/extension-installer": "^1.3" }, "suggest": { "ext-exif": "If you use GD backend (the default) you may want to have EXIF extension installed to elude some tricky issues" @@ -50,4 +52,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/Shortcodes/FileLinkTracking.php b/src/Shortcodes/FileLinkTracking.php index 92d3a8ca..3ca68d9f 100644 --- a/src/Shortcodes/FileLinkTracking.php +++ b/src/Shortcodes/FileLinkTracking.php @@ -9,7 +9,7 @@ use SilverStripe\ORM\DataExtension; use SilverStripe\ORM\DataObject; use SilverStripe\ORM\FieldType\DBHTMLText; -use SilverStripe\ORM\ManyManyList; +use SilverStripe\ORM\ManyManyThroughList; use SilverStripe\Versioned\Versioned; use SilverStripe\View\Parsers\HTMLValue; @@ -23,7 +23,7 @@ * Note that since both SiteTree and File are versioned, LinkTracking and FileTracking will * only be enabled for the Stage record. * - * @method SilverStripe\ORM\ManyManyThroughList FileTracking() + * @method ManyManyThroughList FileTracking() * @extends DataExtension */ class FileLinkTracking extends DataExtension