Issues

ZF-1461: Deprecated method Zend_Config::toArray() still in use

Issue Type: Coding Standards Violation Created: 2007-05-30T10:43:58.000+0000 Last Updated: 2007-07-05T14:44:14.000+0000 Status: Resolved Fix version(s): - 1.0.0 RC2 (08/Jun/07)

Reporter: S├ębastien Vanvelthem (belgattitude) Assignee: Rob Allen (rob) Tags: - Zend_Config

Related issues: Attachments:

Description

In Zend_Config.php,

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

<pre class="highlight">
    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;
    }

Comments

Posted by Rob Allen (rob) on 2007-05-30T15:00:16.000+0000

Resolved in SVN 5062

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts