From 76353450545f9493653eb7ff5c77282b82c7549f Mon Sep 17 00:00:00 2001 From: Alexandre Saelens Date: Thu, 21 Dec 2023 09:06:15 +1300 Subject: [PATCH] Remedy deprecated dynamic variable declaration --- src/Solr/Stores/SolrConfigStore_File.php | 15 ++++++++++++++- src/Solr/Stores/SolrConfigStore_WebDAV.php | 13 +++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/src/Solr/Stores/SolrConfigStore_File.php b/src/Solr/Stores/SolrConfigStore_File.php index beecc38..dc099d5 100644 --- a/src/Solr/Stores/SolrConfigStore_File.php +++ b/src/Solr/Stores/SolrConfigStore_File.php @@ -10,6 +10,19 @@ namespace SilverStripe\FullTextSearch\Solr\Stores; */ class SolrConfigStore_File implements SolrConfigStore { + /** + * @var string + */ + protected $remote = ''; + + /** + * @var string + */ + protected $local = ''; + + /** + * @param array $config + */ public function __construct($config) { $this->local = $config['path']; @@ -49,4 +62,4 @@ class SolrConfigStore_File implements SolrConfigStore { return $this->remote . '/' . $index; } -} +} \ No newline at end of file diff --git a/src/Solr/Stores/SolrConfigStore_WebDAV.php b/src/Solr/Stores/SolrConfigStore_WebDAV.php index 272913f..5d056c0 100644 --- a/src/Solr/Stores/SolrConfigStore_WebDAV.php +++ b/src/Solr/Stores/SolrConfigStore_WebDAV.php @@ -12,6 +12,19 @@ use SilverStripe\FullTextSearch\Utils\WebDAV; */ class SolrConfigStore_WebDAV implements SolrConfigStore { + /** + * @var string + */ + protected $remote = ''; + + /** + * @var string + */ + protected $url = ''; + + /** + * @param array $config + */ public function __construct($config) { $options = Solr::solr_options();