Reports call to a function that returns array by value, which makes the assignment operation non-working. Return by reference shall be used instead.

For example:


<?php
class A {
    private $values = [];
    public function getValues() {
        return $this->values;
    }
}
$config = new A();
$config->getValues()['a'] = 'a';