From: Vincent Vanwaelscappel Date: Wed, 19 Jan 2022 12:26:06 +0000 (+0100) Subject: wip #4804 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=c84b405853d7c9e3e28c5b79ec59dd9685d30aa2;p=cubist_minisearch.git wip #4804 --- 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; }