diff --git a/src/AssetControlExtension.php b/src/AssetControlExtension.php index dafdb5ec..dc742dd7 100644 --- a/src/AssetControlExtension.php +++ b/src/AssetControlExtension.php @@ -24,11 +24,10 @@ * Assets which are no longer referenced will be flushed via explicit delete calls * to the underlying filesystem. * - * @property DataObject|Versioned $owner A {@see DataObject}, potentially decorated with {@see Versioned} extension. + * @extends DataExtension */ class AssetControlExtension extends DataExtension { - /** * When archiving versioned dataobjects, should assets be archived with them? * If false, assets will be deleted when the dataobject is archived. @@ -266,7 +265,6 @@ protected function findAssets(DataObject $record) */ protected function isVersioned() { - /** @var Versioned|DataObject $owner */ $owner = $this->owner; return class_exists(Versioned::class) && $owner->hasExtension(Versioned::class) diff --git a/src/Shortcodes/FileLinkTracking.php b/src/Shortcodes/FileLinkTracking.php index 15bae1d0..92d3a8ca 100644 --- a/src/Shortcodes/FileLinkTracking.php +++ b/src/Shortcodes/FileLinkTracking.php @@ -23,8 +23,8 @@ * Note that since both SiteTree and File are versioned, LinkTracking and FileTracking will * only be enabled for the Stage record. * - * @property DataObject|FileLinkTracking $owner * @method SilverStripe\ORM\ManyManyThroughList FileTracking() + * @extends DataExtension */ class FileLinkTracking extends DataExtension {