From 85243f5a934412164c83724b2936209fe2a7eac2 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Fri, 21 Sep 2018 11:18:54 +0200 Subject: [PATCH] Fix PHP 7.3 compatibility (#422) --- lib/Component/VCard.php | 2 +- lib/FreeBusyGenerator.php | 2 +- tests/VObject/BirthdayCalendarGeneratorTest.php | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Component/VCard.php b/lib/Component/VCard.php index bca623d5e..2a2851f4e 100644 --- a/lib/Component/VCard.php +++ b/lib/Component/VCard.php @@ -511,7 +511,7 @@ function xmlSerialize(Xml\Writer $writer) { switch ($property->name) { case 'VERSION': - continue; + break; case 'XML': $value = $property->getParts(); diff --git a/lib/FreeBusyGenerator.php b/lib/FreeBusyGenerator.php index e30b136c4..ca77cb918 100644 --- a/lib/FreeBusyGenerator.php +++ b/lib/FreeBusyGenerator.php @@ -430,7 +430,7 @@ protected function calculateBusy(FreeBusyData $fbData, array $objects) { // instance. We are skipping this event from the output // entirely. unset($this->objects[$key]); - continue; + break; } if ($this->start) { diff --git a/tests/VObject/BirthdayCalendarGeneratorTest.php b/tests/VObject/BirthdayCalendarGeneratorTest.php index 6d729b658..812641fcf 100644 --- a/tests/VObject/BirthdayCalendarGeneratorTest.php +++ b/tests/VObject/BirthdayCalendarGeneratorTest.php @@ -475,11 +475,11 @@ function testVcardStringWithEmptyBirthdayProperty() { function testParseException() { $generator = new BirthdayCalendarGenerator(); - $input = <<setObjects($input);