Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remedy deprecated dynamic variable declaration #354

Merged
merged 10 commits into from
Jan 15, 2024
15 changes: 14 additions & 1 deletion src/Solr/Stores/SolrConfigStore_File.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,19 @@
*/
class SolrConfigStore_File implements SolrConfigStore
{
/**
* @var string
*/
protected $remote = '';

/**
* @var string
*/
protected $local = '';
alex-dna marked this conversation as resolved.
Show resolved Hide resolved

/**
* @param array $config
*/
public function __construct($config)
{
$this->local = $config['path'];
Expand Down Expand Up @@ -49,4 +62,4 @@ public function instanceDir($index)
{
return $this->remote . '/' . $index;
}
}
}
alex-dna marked this conversation as resolved.
Show resolved Hide resolved
13 changes: 13 additions & 0 deletions src/Solr/Stores/SolrConfigStore_WebDAV.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,19 @@
*/
class SolrConfigStore_WebDAV implements SolrConfigStore
{
/**
* @var string
*/
protected $remote = '';

/**
* @var string
*/
protected $url = '';
alex-dna marked this conversation as resolved.
Show resolved Hide resolved

/**
* @param array $config
*/
public function __construct($config)
{
$options = Solr::solr_options();
Expand Down