[Pkg-owncloud-commits] [php-sabre-vobject] 19/341: Use ArrayIterator instead of ArrayObject.

David Prévot taffit at moszumanska.debian.org
Tue Aug 11 13:35:27 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository php-sabre-vobject.

commit 124338286d43c0304f040fd5e4e871f0044196f8
Author: Ivan Enderlin <ivan.enderlin at hoa-project.net>
Date:   Wed Nov 12 10:49:36 2014 +0100

    Use ArrayIterator instead of ArrayObject.
    
    Simpler and better performance.
---
 lib/Parameter.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/Parameter.php b/lib/Parameter.php
index c4bc354..4753aee 100644
--- a/lib/Parameter.php
+++ b/lib/Parameter.php
@@ -3,7 +3,7 @@
 namespace Sabre\VObject;
 
 use
-    ArrayObject;
+    ArrayIterator;
 
 /**
  * VObject Parameter
@@ -366,7 +366,7 @@ class Parameter extends Node {
         if (!is_null($this->iterator))
             return $this->iterator;
 
-        return $this->iterator = new ArrayObject((array)$this->value);
+        return $this->iterator = new ArrayIterator((array)$this->value);
 
     }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabre-vobject.git



More information about the Pkg-owncloud-commits mailing list