diff --git a/src/PhpSpreadsheet/RichText/ITextElement.php b/src/PhpSpreadsheet/RichText/ITextElement.php index 1c1fb4d8..69954676 100644 --- a/src/PhpSpreadsheet/RichText/ITextElement.php +++ b/src/PhpSpreadsheet/RichText/ITextElement.php @@ -23,7 +23,7 @@ interface ITextElement /** * Get font. * - * @return \PhpOffice\PhpSpreadsheet\Style\Font + * @return null|\PhpOffice\PhpSpreadsheet\Style\Font */ public function getFont(); diff --git a/src/PhpSpreadsheet/RichText/Run.php b/src/PhpSpreadsheet/RichText/Run.php index cccf144f..b4996235 100644 --- a/src/PhpSpreadsheet/RichText/Run.php +++ b/src/PhpSpreadsheet/RichText/Run.php @@ -28,7 +28,7 @@ class Run extends TextElement implements ITextElement /** * Get font. * - * @return Font + * @return null|\PhpOffice\PhpSpreadsheet\Style\Font */ public function getFont() { diff --git a/src/PhpSpreadsheet/RichText/TextElement.php b/src/PhpSpreadsheet/RichText/TextElement.php index b846b224..d9ad0d7f 100644 --- a/src/PhpSpreadsheet/RichText/TextElement.php +++ b/src/PhpSpreadsheet/RichText/TextElement.php @@ -49,7 +49,7 @@ class TextElement implements ITextElement /** * Get font. * - * @return \PhpOffice\PhpSpreadsheet\Style\Font + * @return null|\PhpOffice\PhpSpreadsheet\Style\Font */ public function getFont() {