From 04b5bf593d1333f7aeecc833066c1031eddc8e03 Mon Sep 17 00:00:00 2001 From: Adrien Crivelli Date: Wed, 2 Jan 2019 14:34:14 +1100 Subject: [PATCH] Document font may be null Fixes #833 --- src/PhpSpreadsheet/RichText/ITextElement.php | 2 +- src/PhpSpreadsheet/RichText/Run.php | 2 +- src/PhpSpreadsheet/RichText/TextElement.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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() {