From 25c71877277d6e8ccb3d8a12e2e5aad2c7b6d92f Mon Sep 17 00:00:00 2001 From: MrCue Date: Mon, 15 Apr 2019 20:33:07 +0100 Subject: [PATCH] Fix return type hint (#947) --- CHANGELOG.md | 1 + src/PhpSpreadsheet/Spreadsheet.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8d56aae4..a08ff597 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org). - Fix handling for escaped enclosures and new lines in CSV Separator Inference - Fix MATCH an error was appearing when comparing strings against 0 (always true) +- Fix return type hint ## [1.6.0] - 2019-01-02 diff --git a/src/PhpSpreadsheet/Spreadsheet.php b/src/PhpSpreadsheet/Spreadsheet.php index 150f71b1..8eadcbe8 100644 --- a/src/PhpSpreadsheet/Spreadsheet.php +++ b/src/PhpSpreadsheet/Spreadsheet.php @@ -715,7 +715,7 @@ class Spreadsheet * * @param string $pName Sheet name * - * @return Worksheet + * @return null|Worksheet */ public function getSheetByName($pName) {