orchestral / testbench

Laravel Testing Helper for Packages Development
https://packages.tools/testbench
MIT License
2.1k stars 136 forks source link

[Workbench] `json_decode` an invalid `composer.json` file will return `null` insteads of `array` #372

Closed crynobone closed 1 year ago

crynobone commented 1 year ago

We should consider throwing an exception when this happened:

https://github.com/orchestral/testbench-core/blob/b401efab5a5223a41d355daf7efc83a7615c9632/src/Workbench/Composer.php#L13-L25