Skip to content

Commit 6617a25

Browse files
authored
Remove irrelevant PHP version detection (#948)
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
1 parent a8fea31 commit 6617a25

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/Engines/DatabaseEngine.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -374,10 +374,6 @@ protected function getAttributeColumns(Builder $builder, $attributeClass)
374374
{
375375
$columns = [];
376376

377-
if (PHP_MAJOR_VERSION < 8) {
378-
return [];
379-
}
380-
381377
foreach ((new ReflectionMethod($builder->model, 'toSearchableArray'))->getAttributes() as $attribute) {
382378
if ($attribute->getName() !== $attributeClass) {
383379
continue;
@@ -399,10 +395,6 @@ protected function getFullTextOptions(Builder $builder)
399395
{
400396
$options = [];
401397

402-
if (PHP_MAJOR_VERSION < 8) {
403-
return [];
404-
}
405-
406398
foreach ((new ReflectionMethod($builder->model, 'toSearchableArray'))->getAttributes(SearchUsingFullText::class) as $attribute) {
407399
$arguments = $attribute->getArguments()[1] ?? [];
408400

0 commit comments

Comments
 (0)