From e1c095adca789977a100ee25b5eb208033994cd6 Mon Sep 17 00:00:00 2001 From: Till Deeke Date: Fri, 20 Jul 2018 22:23:44 +0200 Subject: [PATCH] Removes the typehint for search term string (#5904) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The „string“ typehint only works in PHP >= 7.0.0. Since we are still supporting versions below that, remove the type hint. --- app/Models/Traits/Searchable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Traits/Searchable.php b/app/Models/Traits/Searchable.php index 01c20febda..96e88f7cb5 100644 --- a/app/Models/Traits/Searchable.php +++ b/app/Models/Traits/Searchable.php @@ -53,7 +53,7 @@ trait Searchable { * @param string $search The search term * @return array An array of search terms */ - private function prepeareSearchTerms(string $search) { + private function prepeareSearchTerms($search) { return explode(' OR ', $search); }