]> _ Git - cubist_minisearch.git/commitdiff
wip #4804
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 19 Jan 2022 12:26:06 +0000 (13:26 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 19 Jan 2022 12:26:06 +0000 (13:26 +0100)
.idea/php.xml
composer.json
src/Document.php

index 4131144c121901e5198e020bc5bb366e9cd0d088..796581a438982f79defd545ca04c836ae34dc7ba 100644 (file)
@@ -66,5 +66,5 @@
       <path value="$PROJECT_DIR$/vendor/symfony/polyfill-iconv" />
     </include_path>
   </component>
-  <component name="PhpProjectSharedConfiguration" php_language_level="7.3" />
+  <component name="PhpProjectSharedConfiguration" php_language_level="8.0" />
 </project>
\ No newline at end of file
index 7c55158220904a017d13c5ea2364685c603632d8..da353ee43591bab5494856737af6612d769c4e00 100644 (file)
@@ -20,7 +20,7 @@
     }
   ],
   "require": {
-    "php": ">=7.3.0",
+    "php": ">=8.0",
     "laravel/framework": "^v8.64.0",
     "ext-json": "*",
     "cubist/pdf": "dev-master"
index ff368e3e789b32b243cca975227f029fd16a977d..c539ec8ddb1cddd9d36774d0ea980b3e21f146bb 100644 (file)
@@ -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;
     }