We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6fbd6e4 commit 2cbd1a3Copy full SHA for 2cbd1a3
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