Skip to content

Commit 98319b3

Browse files
committed
Don't produce numbers so large they overflow 32 bit integers. Oops.
1 parent 1a7006c commit 98319b3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Zend/tests/pipe_operator/mixed_callable_call.phpt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ $times29 = function(int $x): int {
5656
return $x * 29;
5757
};
5858

59-
function times31(int $x): int {
60-
return $x * 31;
59+
function times2(int $x): int {
60+
return $x * 2;
6161
};
6262

6363
$test = new Test();
@@ -71,10 +71,10 @@ $res1 = 1
7171
|> [StaticTest::class, 'times17']
7272
|> new Times23()
7373
|> $times29
74-
|> fn($x) => times31($x)
74+
|> fn($x) => times2($x)
7575
;
7676

7777
var_dump($res1);
7878
?>
7979
--EXPECT--
80-
int(5277907635)
80+
int(340510170)

0 commit comments

Comments
 (0)