Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Remove uses of Loader:loadClass() #1184

Merged
merged 1 commit into from
May 9, 2012
Merged

Remove uses of Loader:loadClass() #1184

merged 1 commit into from
May 9, 2012

Conversation

Maks3w
Copy link
Member

@Maks3w Maks3w commented May 9, 2012

Not necessary with PHP 5.3 and Autoload.

Build Status

Not necessary with PHP 5.3 and Autoload.
@@ -42,7 +45,7 @@ class Encrypt extends AbstractFilter
*/
public function __construct($options = null)
{
if ($options instanceof \Zend\Config\Config) {
if ($options instanceof Config\Config) {
$options = $options->toArray();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, we should test for Traversable, and, if it is, use Zend\Stdlib\ArrayUtils::iteratorToArray() to cast $options to an array.

@Maks3w
Copy link
Member Author

Maks3w commented May 9, 2012

I will check for uses of Zend\Config in another different iteration.

@weierophinney weierophinney merged commit 6d6cce3 into zendframework:master May 9, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants