From 8208e2570ebbbb7d8ce9bdedb3816b7af7272cdc Mon Sep 17 00:00:00 2001 From: Jan Klat Date: Fri, 1 Jun 2018 16:11:03 +0200 Subject: [PATCH] fix sf/yaml dep version (4.0 introduces BC) --- composer.json | 2 +- src/Response/ResponseData.php | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 4b10d3d..b940033 100644 --- a/composer.json +++ b/composer.json @@ -9,7 +9,7 @@ "ext-curl": "*", "skrz/meta": "^3.1", "symfony/finder": "~2.7|~3.0|~4.0", - "symfony/yaml": "~2.7|~3.0|~4.0" + "symfony/yaml": "~4.0" }, "require-dev": { "cdn77/coding-standard": "^0.5", diff --git a/src/Response/ResponseData.php b/src/Response/ResponseData.php index d0a0632..ac0321f 100644 --- a/src/Response/ResponseData.php +++ b/src/Response/ResponseData.php @@ -97,6 +97,9 @@ public function getYaml() : ?string */ public function getParsedYaml(int $flags = 0) : array { - return Yaml::parse($this->getYaml(), $flags); + return Yaml::parse( + (string) $this->getYaml(), + $flags + ); } }