aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/sabre/vobject/lib/Parser/Json.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-05-07 23:35:02 +0200
committerMario <mario@mariovavti.com>2020-05-07 23:35:02 +0200
commitfae70bf0a7f1b566d25e30064f60d58ab150951a (patch)
tree1714511edb85ed0e28034ed9371d5fc515504fd6 /vendor/sabre/vobject/lib/Parser/Json.php
parentffd2faf8a09a870e8dbecb3ad168e0a9b25941d3 (diff)
downloadvolse-hubzilla-fae70bf0a7f1b566d25e30064f60d58ab150951a.tar.gz
volse-hubzilla-fae70bf0a7f1b566d25e30064f60d58ab150951a.tar.bz2
volse-hubzilla-fae70bf0a7f1b566d25e30064f60d58ab150951a.zip
Revert "composer updates"
This reverts commit dbfe748d274f6843fc91a3071df7be45c4ab5b00
Diffstat (limited to 'vendor/sabre/vobject/lib/Parser/Json.php')
-rw-r--r--vendor/sabre/vobject/lib/Parser/Json.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/vendor/sabre/vobject/lib/Parser/Json.php b/vendor/sabre/vobject/lib/Parser/Json.php
index f33603207..3fd307e97 100644
--- a/vendor/sabre/vobject/lib/Parser/Json.php
+++ b/vendor/sabre/vobject/lib/Parser/Json.php
@@ -7,8 +7,6 @@ use Sabre\VObject\Component\VCard;
use Sabre\VObject\Document;
use Sabre\VObject\EofException;
use Sabre\VObject\ParseException;
-use Sabre\VObject\Property\FlatText;
-use Sabre\VObject\Property\Text;
/**
* Json Parser.
@@ -89,6 +87,8 @@ class Json extends Parser
/**
* Parses a component.
*
+ * @param array $jComp
+ *
* @return \Sabre\VObject\Component
*/
public function parseComponent(array $jComp)
@@ -124,6 +124,8 @@ class Json extends Parser
/**
* Parses properties.
*
+ * @param array $jProp
+ *
* @return \Sabre\VObject\Property
*/
public function parseProperty(array $jProp)
@@ -158,8 +160,8 @@ class Json extends Parser
// represents TEXT values. We have to normalize these here. In the
// future we can get rid of FlatText once we're allowed to break BC
// again.
- if (FlatText::class === $defaultPropertyClass) {
- $defaultPropertyClass = Text::class;
+ if ('Sabre\VObject\Property\FlatText' === $defaultPropertyClass) {
+ $defaultPropertyClass = 'Sabre\VObject\Property\Text';
}
// If the value type we received (e.g.: TEXT) was not the default value