Skip to content
This repository has been archived by the owner on Mar 19, 2020. It is now read-only.

Commit

Permalink
fix sf/yaml dep version (4.0 introduces BC)
Browse files Browse the repository at this point in the history
  • Loading branch information
klatys committed Jun 1, 2018
1 parent 1bf3d51 commit 8208e25
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 4 additions & 1 deletion src/Response/ResponseData.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
}
}

0 comments on commit 8208e25

Please sign in to comment.