Skip to content

Commit

Permalink
Fix PHP 8.1 - allow empty yaml (#4845)
Browse files Browse the repository at this point in the history
  • Loading branch information
andypost committed Oct 4, 2021
1 parent 4927b9a commit 05be1e7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/internal-forks/Config/Yaml/Inline.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,7 @@ public static function parse($value, $flags = 0, $references = array())
self::$objectForMap = (bool) (Yaml::PARSE_OBJECT_FOR_MAP & $flags);
self::$constantSupport = (bool) (Yaml::PARSE_CONSTANT & $flags);

$value = trim($value);

if ('' === $value) {
if (is_null($value) || '' === trim($value)) {
return '';
}

Expand Down

0 comments on commit 05be1e7

Please sign in to comment.