diff --git a/CHANGELOG.md b/CHANGELOG.md index b6d3fed..decd6dc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +# v1.6.4 +## 03/24/2023 + +1. [](#bugfix) + * Fixed an issue with PHP 8.2 [#36](https://github.com/rockettheme/toolbox/pull/36) + # v1.6.3 ## 02/19/2023 diff --git a/Compat/src/Yaml/Inline.php b/Compat/src/Yaml/Inline.php index e8273bc..f59c721 100755 --- a/Compat/src/Yaml/Inline.php +++ b/Compat/src/Yaml/Inline.php @@ -45,7 +45,7 @@ public static function parse($value, $exceptionOnInvalidType = false, $objectSup self::$objectSupport = $objectSupport; self::$objectForMap = $objectForMap; - $value = trim($value); + $value = trim($value ?? ''); if ('' === $value) { return '';