diff --git a/CHANGELOG.md b/CHANGELOG.md index 9e134cb..4cb5579 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased +## v1.2.2 + +### Fixed + +- Drop redundant null-coalesce in `ErrorFreeResult` https://github.com/spawnia/sailor/pull/140 + ## v1.2.1 ### Fixed diff --git a/src/ErrorFreeResult.php b/src/ErrorFreeResult.php index 8adf8fb..3a45c1a 100644 --- a/src/ErrorFreeResult.php +++ b/src/ErrorFreeResult.php @@ -24,7 +24,7 @@ public static function fromResult(Result $result): self $instance = new static(); $instance->data = $result->data; - $instance->extensions = $result->extensions ?? null; + $instance->extensions = $result->extensions; return $instance; }