diff --git a/includes/ExtractFormatter.php b/includes/ExtractFormatter.php index ce2de51..1cde6f7 100644 --- a/includes/ExtractFormatter.php +++ b/includes/ExtractFormatter.php @@ -44,7 +44,7 @@ class ExtractFormatter extends HtmlFormatter { * Ignored * @return string Processed HTML */ - public function getText( $element = null ) { + public function getText( $element = null ): string { $this->filterContent(); $text = parent::getText(); if ( $this->plainText ) { @@ -63,7 +63,7 @@ class ExtractFormatter extends HtmlFormatter { * @param string $html HTML string to process * @return string Processed HTML */ - public function onHtmlReady( $html ) { + public function onHtmlReady( string $html ): string { if ( $this->plainText ) { $html = preg_replace( '/\s*(getDoc();