diff --git a/README.md b/README.md index a5389d3..4739d40 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,7 @@ [![Build Status](https://secure.travis-ci.org/silverstripe/silverstripe-fulltextsearch.png?branch=master)](http://travis-ci.org/silverstripe/silverstripe-fulltextsearch) Adds support for fulltext search engines like Sphinx and Solr to SilverStripe CMS. +Compatible with PHP 7.2 ## Maintainer Contact diff --git a/_config.php b/_config.php index c9e422a..01508fb 100644 --- a/_config.php +++ b/_config.php @@ -1,5 +1,9 @@ addFulltextField($field); } diff --git a/code/search/SearchUpdater.php b/code/search/SearchUpdater.php index 12e0740..2e5f6f6 100644 --- a/code/search/SearchUpdater.php +++ b/code/search/SearchUpdater.php @@ -12,7 +12,7 @@ * * TODO: The way we bind in is awful hacky. */ -class SearchUpdater extends Object +class SearchUpdater extends SS_Object { /** * Replace the database object with a subclass that captures all manipulations and passes them to us diff --git a/code/solr/Solr.php b/code/solr/Solr.php index b93d044..ec8e12b 100644 --- a/code/solr/Solr.php +++ b/code/solr/Solr.php @@ -117,7 +117,7 @@ class Solr $options = self::solr_options(); if (!self::$service_singleton) { - self::$service_singleton = Object::create( + self::$service_singleton = SS_Object::create( $options['service'], $options['host'], $options['port'], $options['path'] ); }