PHP 7.1 + Warning : Cannot assign an empty string to a string offset