Issues

ZF-9601: Zend_Validate_Barcode make call of the method Zend_Validate_Abstract:>_setValue($value)

Description

current code line 192 in file, Zend/Validate/Barcode.php


$this->_value = (string) $value;

Change to


$this->_setValue($value);

Comments

What's the benefit/improvement of deleting (string)? Could be a problem in my eyes when the given value is no string.

Changed with r21748

@Thomas I agree it would be a problem, but before of the assignment is made a validate of the type of given passed.

line 187 the 190 in, Zend/Validate/Barcode.php


if (!is_string($value)) {
    $this->_error(self::INVALID);
    return false;
}

@Thomas Thanks, Disregard my comment above.