Zend Framework

Deprecated method Zend_Config::toArray() still in use

Details

  • Type: Coding Standards Violation Coding Standards Violation
  • Status: Resolved Resolved
  • Priority: Trivial Trivial
  • Resolution: Fixed
  • Affects Version/s: 0.9.3, 1.0.0 RC1
  • Fix Version/s: 1.0.0 RC2
  • Component/s: Zend_Config
  • Labels:
    None

Description

In Zend_Config.php,

please update the code of method Zend_Config::asArray() to no use deprecated method toArray() anymore (line 158 ZFRC1).

Unable to find source-code formatter for language: php. Available languages are: javascript, sql, xhtml, actionscript, none, html, xml, java
public function toArray()
    {
        $array = array();
        foreach ($this->_data as $key => $value) {
            if (is_object($value)) {
                $array[$key] = $value->asArray();   <----- must be $array[$key] = $value->toArray();
            } else {
                $array[$key] = $value;
            }
        }
        return $array;
    }

Activity

Hide
Rob Allen added a comment -

Resolved in SVN 5062

Show
Rob Allen added a comment - Resolved in SVN 5062

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: