File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -251,18 +251,18 @@ public function testTemporaryDisable()
251
251
252
252
public function testMemoizationWithinEvals ()
253
253
{
254
- $ firstResolver = eval ('return fn () => once( function () { return random_int(1, 1000 ); } ) ; ' );
254
+ $ firstResolver = eval ('return fn () => once( function () { return random_int(1, PHP_INT_MAX ); } ) ; ' );
255
255
256
256
$ firstA = $ firstResolver ();
257
257
$ firstB = $ firstResolver ();
258
258
259
- $ secondResolver = eval ('return fn () => fn () => once( function () { return random_int(1, 1000 ); } ) ; ' );
259
+ $ secondResolver = eval ('return fn () => fn () => once( function () { return random_int(1, PHP_INT_MAX ); } ) ; ' );
260
260
261
261
$ secondA = $ secondResolver ()();
262
262
$ secondB = $ secondResolver ()();
263
263
264
- $ third = eval ('return once( function () { return random_int(1, 1000 ); } ) ; ' );
265
- $ fourth = eval ('return once( function () { return random_int(1, 1000 ); } ) ; ' );
264
+ $ third = eval ('return once( function () { return random_int(1, PHP_INT_MAX ); } ) ; ' );
265
+ $ fourth = eval ('return once( function () { return random_int(1, PHP_INT_MAX ); } ) ; ' );
266
266
267
267
$ this ->assertNotSame ($ firstA , $ firstB );
268
268
$ this ->assertNotSame ($ secondA , $ secondB );
You can’t perform that action at this time.
0 commit comments