Skip to content

Commit

Permalink
detect yield in new
Browse files Browse the repository at this point in the history
  • Loading branch information
orklah committed Nov 1, 2021
1 parent af129f8 commit c5c779c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/GeneratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ function generator(): Generator
'$iterator' => 'NoRewindIterator<int, string>',
]
],
'fillTemplatesForIteratorFromGenerator' => [
'detectYieldInNew' => [
'<?php
/** @psalm-suppress MissingClosureReturnType */
$_a = function() { return new RuntimeException(yield "a"); };
Expand Down

0 comments on commit c5c779c

Please sign in to comment.