diff --git a/composer.json b/composer.json index 21d4c6a..142cf29 100644 --- a/composer.json +++ b/composer.json @@ -15,7 +15,9 @@ }, "require-dev": { "phpunit/phpunit": "^9.6", - "squizlabs/php_codesniffer": "^3" + "squizlabs/php_codesniffer": "^3", + "silverstripe/standards": "^1", + "phpstan/extension-installer": "^1.3" }, "conflict": { "silverstripe/auditor": "<2.2.1" 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/CarouselPageExtension.php b/src/Extensions/CarouselPageExtension.php index 4b913ff..c7c0720 100644 --- a/src/Extensions/CarouselPageExtension.php +++ b/src/Extensions/CarouselPageExtension.php @@ -14,12 +14,13 @@ use SilverStripe\Forms\GridField\GridFieldDeleteAction; use SilverStripe\Forms\GridField\GridFieldSortableHeader; use SilverStripe\ORM\DataList; +use SilverStripe\ORM\HasManyList; use Symbiote\GridFieldExtensions\GridFieldOrderableRows; use SilverStripe\Forms\GridField\GridFieldVersionedState; use SilverStripe\Forms\LiteralField; /** - * @method SilverStripe\ORM\HasManyList CarouselItems() + * @method HasManyList CarouselItems() * * @extends DataExtension */