File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
tests/Issues/ScopeNotAvailable/FixtureJsonThrowCaseSensitiveConstFetch Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -8,16 +8,19 @@ class Fixture
88 {
99 $ user = $ _REQUEST ['param ' ];
1010
11+ // add JSON_THROW_ON_ERROR on NON-exact value
1112 $ user = json_decode ($ user );
1213
1314 $ condition = true ;
1415 if ($ condition ) {
1516 $ output = [];
17+ // skip add JSON_THROW_ON_ERROR on exact value
1618 echo (json_encode ($ output ));
1719 exit ;
1820 }
1921
2022 $ output = [];
23+ // skip add JSON_THROW_ON_ERROR on exact value
2124 echo (json_encode ($ output ));
2225 }
2326}
@@ -34,16 +37,19 @@ class Fixture
3437 {
3538 $ user = $ _REQUEST ['param ' ];
3639
40+ // add JSON_THROW_ON_ERROR on NON-exact value
3741 $ user = json_decode ($ user , null , 512 , JSON_THROW_ON_ERROR );
3842
3943 $ condition = true ;
4044 if ($ condition ) {
4145 $ output = [];
46+ // skip add JSON_THROW_ON_ERROR on exact value
4247 echo (json_encode ($ output ));
4348 exit ;
4449 }
4550
4651 $ output = [];
52+ // skip add JSON_THROW_ON_ERROR on exact value
4753 echo (json_encode ($ output ));
4854 }
4955}
You can’t perform that action at this time.
0 commit comments