I'm building an object datastructure from an http call, for the sake of simplicity I changed it to loading a json file in this example:
https://phpstan.org/r/a9d7a22a-8f7c-4b29-8048-465055cf094b
Why doesn't the null coalescing operator silencing the "Cannot access offset 'currency' on mixed." error?
What do I need to do in such a case?
PHPStan version is: PHPStan - PHP Static Analysis Tool 2.1.2