: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
namespace Nextend\Framework\Form\Element;
use Nextend\Framework\Asset\Js\Js;
use Nextend\Framework\Form\AbstractField;
use Nextend\Framework\Sanitize;
use Nextend\Framework\View\Html;
class Textarea extends AbstractField {
protected $minHeight = 44;
protected $classes = array(
protected function fetchElement() {
Js::addInline('new _N2.FormElementText("' . $this->fieldID . '");');
return Html::tag('div', array(
'class' => implode(' ', $this->classes),
), Html::tag('textarea', array(
'name' => $this->getFieldName(),
'style' => 'width:' . $this->width . 'px;height:' . $this->height . 'px;min-height:' . $this->minHeight . 'px;'
), Sanitize::esc_textarea($this->getValue())));
public function setWidth($width) {
public function setHeight($height) {
if ($this->minHeight > $height) {
$this->minHeight = $height;
public function setMinHeight($minHeight) {
$this->minHeight = $minHeight;
public function setFieldStyle($style) {