Skip to content

Commit bc78c75

Browse files
authored
Merge pull request mongodb#1583 from bTokman/master
Fix issue using query builder first() method (in case with usage outside the Laravel)
2 parents 96e1531 + 8f9f4c6 commit bc78c75

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Jenssegers/Mongodb/Query/Builder.php

+2
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ protected function shouldUseCollections()
152152
$version = filter_var(explode(')', $version)[0], FILTER_SANITIZE_NUMBER_FLOAT, FILTER_FLAG_ALLOW_FRACTION); // lumen
153153
return version_compare($version, '5.3', '>=');
154154
}
155+
156+
return true;
155157
}
156158

157159
/**

0 commit comments

Comments
 (0)