Indirect modification of overloaded element of Adbar\Dot has no effect
KarelWintersky opened this issue · comments
use Adbar\Dot;
$CONFIG = new Dot();
...
$CONFIG['SPHINX']['articles_search_weights'] = [ // line 194:
'title' => 50,
'short' => 30,
'text' => 20,
'author' => 5
];
Result:
PHP Notice: Indirect modification of overloaded element of Adbar\Dot has no effect in foobar.php on line 194
Hi @KarelWintersky,
You need to set the values with dot notation syntax:
$CONFIG['SPHINX.articles_search_weights'] = [
'title' => 50,
'short' => 30,
'text' => 20,
'author' => 5
];