From 9259e44659c5545ee435c584146aab0343b6438f Mon Sep 17 00:00:00 2001 From: Doeke Norg Date: Mon, 2 Sep 2024 10:01:53 +0200 Subject: [PATCH] Fix typecast of title --- composer.json | 2 +- src/Renderer/PHPExcelRenderer.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 94a2950..1246c30 100644 --- a/composer.json +++ b/composer.json @@ -57,7 +57,7 @@ "overtrue/phplint": "^2.1" }, "scripts": { - "unbuild": "rm -rf build/composer.* build/vendor build/src", + "unbuild": "rm -rf build/composer.* build/vendor*/* build/src", "build": [ "@unbuild", "cp composer.json build/composer.json", diff --git a/src/Renderer/PHPExcelRenderer.php b/src/Renderer/PHPExcelRenderer.php index 9220acc..2fff9a8 100644 --- a/src/Renderer/PHPExcelRenderer.php +++ b/src/Renderer/PHPExcelRenderer.php @@ -70,7 +70,7 @@ private function setTitle( $title ) { ); $this->setWorksheetTitle( $this->worksheet, $this->form ); - $this->spreadsheet->getProperties()->setTitle( $title ); + $this->spreadsheet->getProperties()->setTitle( (string) $title ); return $this; }