From c84b405853d7c9e3e28c5b79ec59dd9685d30aa2 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Wed, 19 Jan 2022 13:26:06 +0100 Subject: [PATCH] wip #4804 --- .idea/php.xml | 2 +- composer.json | 2 +- src/Document.php | 7 +++++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.idea/php.xml b/.idea/php.xml index 4131144..796581a 100644 --- a/.idea/php.xml +++ b/.idea/php.xml @@ -66,5 +66,5 @@ - + \ No newline at end of file diff --git a/composer.json b/composer.json index 7c55158..da353ee 100644 --- a/composer.json +++ b/composer.json @@ -20,7 +20,7 @@ } ], "require": { - "php": ">=7.3.0", + "php": ">=8.0", "laravel/framework": "^v8.64.0", "ext-json": "*", "cubist/pdf": "dev-master" diff --git a/src/Document.php b/src/Document.php index ff368e3..c539ec8 100644 --- a/src/Document.php +++ b/src/Document.php @@ -145,10 +145,13 @@ class Document } /** - * @param string $keywords + * @param string|array $keywords */ - public function setKeywords(string $keywords): void + public function setKeywords(string|array $keywords): void { + if (is_array($keywords)) { + $keywords = implode(' ', $keywords); + } $this->keywords = $keywords; } -- 2.39.5