[Pkg-owncloud-commits] [php-sabre-vobject] 33/65: Fix for PHP5.3.

David Prévot taffit at moszumanska.debian.org
Tue Feb 24 23:57:16 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 775f18609334aa758481018963a0892d67726501
Author: Ivan Enderlin <ivan.enderlin at hoa-project.net>
Date:   Tue Feb 3 09:35:11 2015 +0100

    Fix for PHP5.3.
---
 lib/Component/Available.php                   | 8 ++++----
 lib/Component/VAvailability.php               | 4 ++--
 tests/VObject/Component/VAvailabilityTest.php | 4 ++--
 3 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/lib/Component/Available.php b/lib/Component/Available.php
index ec5f6c4..b616fd7 100644
--- a/lib/Component/Available.php
+++ b/lib/Component/Available.php
@@ -87,19 +87,19 @@ class Available extends VObject\Component {
         $result = parent::validate($options);
 
         if (isset($this->DTEND) && isset($this->DURATION)) {
-            $result[] = [
+            $result[] = array(
                 'level' => 3,
                 'message' => 'DTEND and DURATION cannot both be present',
                 'node' => $this
-            ];
+            );
         }
 
         if (isset($this->DURATION) && !isset($this->DTSTART)) {
-            $result[] = [
+            $result[] = array(
                 'level' => 3,
                 'message' => 'DURATION must be declared with a DTSTART.',
                 'node' => $this
-            ];
+            );
         }
 
         return $result;
diff --git a/lib/Component/VAvailability.php b/lib/Component/VAvailability.php
index 95ae4ff..ab9ba28 100644
--- a/lib/Component/VAvailability.php
+++ b/lib/Component/VAvailability.php
@@ -86,11 +86,11 @@ class VAvailability extends VObject\Component {
         $result = parent::validate($options);
 
         if (isset($this->DTEND) && isset($this->DURATION)) {
-            $result[] = [
+            $result[] = array(
                 'level' => 3,
                 'message' => 'DTEND and DURATION cannot both be present',
                 'node' => $this
-            ];
+            );
         }
 
         return $result;
diff --git a/tests/VObject/Component/VAvailabilityTest.php b/tests/VObject/Component/VAvailabilityTest.php
index 7076c54..861a43a 100644
--- a/tests/VObject/Component/VAvailabilityTest.php
+++ b/tests/VObject/Component/VAvailabilityTest.php
@@ -25,7 +25,7 @@ END:VCALENDAR
 VCAL;
         $document = Reader::read($vcal);
 
-        $this->assertInstanceOf(VAvailability::class, $document->VAVAILABILITY);
+        $this->assertInstanceOf(__NAMESPACE__ . '\VAvailability', $document->VAVAILABILITY);
 
     }
 
@@ -145,7 +145,7 @@ END:VCALENDAR
 VCAL;
         $document = Reader::read($vcal);
 
-        $this->assertInstanceOf(Component::class, $document->VAVAILABILITY->AVAILABLE);
+        $this->assertInstanceOf(__NAMESPACE__, $document->VAVAILABILITY->AVAILABLE);
 
     }
 

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