We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 753acf9 + 2cbd1a3 commit 12239f2Copy full SHA for 12239f2
tests/PHPStan/Rules/Arrays/data/bug-9991.php
@@ -3,7 +3,7 @@
3
namespace Bug9991;
4
5
function (): void {
6
- $data = json_decode(file_get_contents('') ?: '', flags: JSON_THROW_ON_ERROR | JSON_OBJECT_AS_ARRAY);
+ $data = json_decode(file_get_contents('') ?: '', true, 512, JSON_THROW_ON_ERROR | JSON_OBJECT_AS_ARRAY);
7
8
if (
9
isset($data['title'])
0 commit comments