code: public function addAttributes($arrAttributes)
  	{
  		parent::addAttributes($arrAttributes);
  
  		if ($this->type != 'number')
  		{
  			return;
  		}
  
  		foreach (array('minlength', 'minval', 'maxlength', 'maxval') as $name)
  		{
  			if (isset($arrAttributes[$name]))
  			{
  				$this->$name = $arrAttributes[$name];
  			}
  		}
  	}
docs: Re-add some attributes if the field type is a number