Skip to content

Commit

Permalink
Revert some unnecessary test changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Girgias committed Aug 13, 2024
1 parent 1f2ca96 commit 36a9449
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Zend/tests/generators/yield_precedence.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Precedence of yield and arrow operators

function gen() {
yield "a" . "b";
yield "a" or die();
yield "a" or die;
yield "k" => "a" . "b";
yield "k" => "a" or die();
var_dump([yield "k" => "a" . "b"]);
Expand Down
2 changes: 1 addition & 1 deletion Zend/tests/gh9916-006.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ $gen = (function() {
yield from (function () {
$x = new stdClass;
print "Before exit\n";
exit();
exit;
print "Not executed\n";
yield;
})();
Expand Down
2 changes: 1 addition & 1 deletion Zend/tests/jump12.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ goto c;
declare (ticks=1) {
b:
print "ok!\n";
exit();
exit;
}
c:
print "ok!\n";
Expand Down
2 changes: 1 addition & 1 deletion Zend/tests/throw/leaks.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ try {
var_dump(error_reporting());

// Exit also unwinds and thus has the same basic problem.
new stdClass(exit());
new stdClass(exit);

?>
--EXPECT--
Expand Down

0 comments on commit 36a9449

Please sign in to comment.