Skip to content

Commit

Permalink
Merge pull request #25 from heyday/luciano/hotfix/support-php7.2
Browse files Browse the repository at this point in the history
Fixed compatibility issues
  • Loading branch information
bendubuisson authored Sep 29, 2019
2 parents 7512b38 + 6acde72 commit 82b9c7c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"issues": "http://github.com/heyday/silverstripe-elastica/issues"
},
"require": {
"ruflin/elastica": "3.1.0",
"ruflin/elastica": "5.3.1",
"symbiote/silverstripe-queuedjobs": "~2.10",
"php": ">=7.2"
},
Expand Down
2 changes: 1 addition & 1 deletion src/ResultList.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class ResultList extends \ViewableData implements \SS_Limitable
public function __construct(Index $index, Query $query, LoggerInterface $logger = null)
{
//Optimise the query by just getting back the ids and types
$query->setFields(array(
$query->setStoredFields(array(
'_id',
'_type',
'highlight'
Expand Down

0 comments on commit 82b9c7c

Please sign in to comment.