From 6753bb78331d63db83733348e211653284749cea Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Fri, 12 Jan 2024 10:39:17 +1300 Subject: [PATCH] ENH Add generic types --- src/Extension/FileTextExtractable.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Extension/FileTextExtractable.php b/src/Extension/FileTextExtractable.php index fedccbc..6251843 100644 --- a/src/Extension/FileTextExtractable.php +++ b/src/Extension/FileTextExtractable.php @@ -14,6 +14,8 @@ * Adds an additional property which is the cached contents, which is populated on demand. * * @author mstephens + * + * @extends DataExtension */ class FileTextExtractable extends DataExtension { @@ -85,7 +87,6 @@ public function getFileContent() */ public function extractFileAsText($disableCache = false) { - /** @var File $file */ $file = $this->owner; if (!$disableCache) { $text = $this->getTextCache()->load($file);