[Pkg-owncloud-commits] [php-sabre-vobject] 290/341: Making the $children property protected.

David Prévot taffit at moszumanska.debian.org
Tue Aug 11 13:35:57 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 fcfce39d2a536e8457f28a91a96833c6b45aa8ea
Author: Evert Pot <me at evertpot.com>
Date:   Fri Jul 3 18:41:41 2015 -0400

    Making the $children property protected.
---
 lib/Component.php | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/lib/Component.php b/lib/Component.php
index 4408cfd..063538d 100644
--- a/lib/Component.php
+++ b/lib/Component.php
@@ -30,7 +30,7 @@ class Component extends Node {
      *
      * @var array
      */
-    public $children = [];
+    protected $children = [];
 
     /**
      * Creates a new component.
@@ -430,6 +430,12 @@ class Component extends Node {
      */
     function __get($name) {
 
+        if ($name==='children') {
+
+            throw new \RuntimeException('Starting sabre/vobject 4.0 the children property is now protected. You should use the select() method instead');
+
+        }
+
         $matches = $this->select($name);
         if (count($matches) === 0) {
             return;

-- 
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