Skip to content

Commit

Permalink
ENH Add generic types
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Jan 11, 2024
1 parent 4bcdf97 commit 6753bb7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Extension/FileTextExtractable.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* Adds an additional property which is the cached contents, which is populated on demand.
*
* @author mstephens
*
* @extends DataExtension<File>
*/
class FileTextExtractable extends DataExtension
{
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 6753bb7

Please sign in to comment.