Skip to content

Commit 594af65

Browse files
committed
Correct addition-precedence test so it would be a different output if it was wrong.
1 parent 0794003 commit 594af65

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Zend/tests/pipe_operator/precedence_addition.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Pipe binds lower than addition
44
<?php
55

66
function _test1(int $a): int {
7-
return $a + 1;
7+
return $a * 2;
88
}
99

1010
$bad_func = null;
@@ -14,4 +14,4 @@ $res1 = 5 + 2 |> '_test1';
1414
var_dump($res1);
1515
?>
1616
--EXPECT--
17-
int(8)
17+
int(14)

0 commit comments

Comments
 (0)