: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
namespace Nextend\Framework\Form\Element\Text;
use Nextend\Framework\Asset\Js\Js;
use Nextend\Framework\Form\Element\Text;
use Nextend\Framework\View\Html;
class TextMultiAutoComplete extends Text {
protected $options = array();
protected $class = 'n2_field_autocomplete ';
protected function addScript() {
Js::addInline('new _N2.FormElementAutocomplete("' . $this->fieldID . '", ' . json_encode($this->options) . ');');
protected function post() {
return Html::tag('a', array(
'class' => 'n2_field_text__clear',
), Html::tag('i', array('class' => 'ssi_16 ssi_16--circularremove'), ''));
public function setOptions($options) {
$this->options = $options;