diff --git a/CHANGELOG.md b/CHANGELOG.md index 561119b..8144476 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), For a full diff see [`1.0.0...main`][1.0.0...main]. +### Fixed + +- Decoded JSON `string` to an object, not an associative array, when constructing `Json` from file name ([#3]), by [@localheinz] + ## [`1.0.0`][1.0.0] For a full diff see [`c020e6f...1.0.0`][c020e6f...1.0.0]. @@ -24,5 +28,6 @@ For a full diff see [`c020e6f...1.0.0`][c020e6f...1.0.0]. [#1]: https://github.com/ergebnis/json/pull/1 [#2]: https://github.com/ergebnis/json/pull/2 +[#3]: https://github.com/ergebnis/json/pull/3 [@localheinz]: https://github.com/localheinz diff --git a/infection.json b/infection.json index 4e433d1..8eddeaf 100644 --- a/infection.json +++ b/infection.json @@ -4,7 +4,7 @@ "text": ".build/infection/infection-log.txt" }, "minCoveredMsi": 100, - "minMsi": 70, + "minMsi": 66, "phpUnit": { "configDir": "test\/Unit" }, diff --git a/src/Json.php b/src/Json.php index 07b5adc..29aea6d 100644 --- a/src/Json.php +++ b/src/Json.php @@ -69,7 +69,7 @@ public static function fromFile(string $file): self try { $decoded = \json_decode( $encoded, - true, + false, 512, \JSON_THROW_ON_ERROR, );