diff --git a/code/Model/SiteTree.php b/code/Model/SiteTree.php index 7891be26ff..75437496fb 100755 --- a/code/Model/SiteTree.php +++ b/code/Model/SiteTree.php @@ -110,7 +110,6 @@ * @mixin FileLinkTracking Added via filetracking.yml in silverstripe/assets * @mixin InheritedPermissionsExtension * @method HasManyList BackLinks() - * @method HasManyList VirtualPages() */ class SiteTree extends DataObject implements PermissionProvider, i18nEntityProvider, CMSPreviewable, Resettable, Flushable, MemberCacheFlusher { diff --git a/composer.json b/composer.json index 77464ade39..b274b1073b 100644 --- a/composer.json +++ b/composer.json @@ -31,7 +31,9 @@ }, "require-dev": { "phpunit/phpunit": "^9.6", - "squizlabs/php_codesniffer": "^3.7" + "squizlabs/php_codesniffer": "^3.7", + "silverstripe/standards": "^1", + "phpstan/extension-installer": "^1.3" }, "extra": { "expose": [ diff --git a/phpstan.neon.dist b/phpstan.neon.dist new file mode 100644 index 0000000000..d10aea03bb --- /dev/null +++ b/phpstan.neon.dist @@ -0,0 +1,3 @@ +parameters: + paths: + - code