Run Rector on your code to see what it can do for you:
public function run($index) { - return str_replace($this->find, $this->replace, $this->items[$index]); + return str_replace($this->find, $this->replace, (string) $this->items[$index]); } }
Applied Rules:
Not a change you expect?
rector.php